Skip to content

Commit

Permalink
chore: modify github actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GayeongKimm committed Jul 30, 2024
1 parent daea0b6 commit db1a98f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -22,6 +21,12 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Checkout code
uses: actions/checkout@v3

- name: Build with Gradle
run: ./gradlew build

- name: make application.yml
run: |
cd ./src/main/resources
Expand All @@ -31,13 +36,10 @@ jobs:
- name: set chmod
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew bootJar

- name: Docker build
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t sopo . # Dockerfile 경로 수정
docker build -t sopo .
docker tag sopo ${{ secrets.DOCKER_USERNAME }}/sopo:latest
docker push ${{ secrets.DOCKER_USERNAME }}/sopo:latest
Expand Down

0 comments on commit db1a98f

Please sign in to comment.