Skip to content

build: samin mysql 버전 수정 #5

build: samin mysql 버전 수정

build: samin mysql 버전 수정 #5

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: build
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup MySQL
uses: samin/[email protected]
with:
host port: 20000
container port: 3306
character set server: 'utf8mb4'
collation server: 'utf8mb4_general_ci'
mysql database: 'busan'
mysql root password: password
mysql user: root
mysql password: password
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/[email protected]
with:
arguments: clean build openapi3
- name: Docker build and push
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t ${{ secrets.DOCKER_REPO }}/busan-reservation .
docker push ${{ secrets.DOCKER_REPO }}/busan-reservation