Skip to content

Commit

Permalink
build: docker-compose.yml secrets 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy authored Apr 16, 2024
1 parent 637f0ae commit 47feb70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
chmod +x ./gradlew
./gradlew clean build -x test
# docker-compose.yml Secret Setup
- name: Set Docker-compose.yml
uses: microsoft/variable-substitution@v1
with:
files: docker-compose.yml
env:
services.rabbitmq.environment.RABBITMQ_DEFAULT_USER: ${{ secrets.RABBITMQ_DEFAULT_USER }}
services.rabbitmq.environment.RABBITMQ_DEFAULT_PASS: ${{ secrets.RABBITMQ_DEFAULT_PASS }}

# dockerfile을 통해 이미지를 빌드하고, 이를 docker repo로 push
# 이 때 사용되는 ${{ secrets.DOCKER_REPO }}/backend-dev 가 위에서 만든 도커 repository.
- name: Docker build & push to docker repo
Expand Down

0 comments on commit 47feb70

Please sign in to comment.