Skip to content

Commit

Permalink
build: docker & gradle 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy authored Apr 16, 2024
1 parent 93c2ba8 commit 81d1230
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ jobs:
java-version: '17'
distribution: "temurin"

# gradle을 통해 소스 빌드
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew clean build -x test
# docker-compose.yml Secret Setup
- name: Set Docker-compose.yml
uses: microsoft/variable-substitution@v1
Expand All @@ -54,6 +48,12 @@ jobs:
services.rabbitmq.environment.RABBITMQ_DEFAULT_USER: ${{ secrets.RABBITMQ_DEFAULT_USER }}
services.rabbitmq.environment.RABBITMQ_DEFAULT_PASS: ${{ secrets.RABBITMQ_DEFAULT_PASS }}

# gradle을 통해 소스 빌드
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew clean build -x test
# dockerfile을 통해 이미지를 빌드하고, 이를 docker repo로 push
# 이 때 사용되는 ${{ secrets.DOCKER_REPO }}/backend-dev 가 위에서 만든 도커 repository.
- name: Docker build & push to docker repo
Expand Down

0 comments on commit 81d1230

Please sign in to comment.