From 47feb70610b4928a6f6325faa72899ddd574f704 Mon Sep 17 00:00:00 2001 From: yeonjy <81320703+yeonjy@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:13:03 +0900 Subject: [PATCH] =?UTF-8?q?build:=20docker-compose.yml=20secrets=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index df8f3247..1a5d3095 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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