From b397859a3ae42a0dab547016b2d94ebd10d31296 Mon Sep 17 00:00:00 2001 From: IMHOJEONG <39ghwjd@naver.com> Date: Sun, 31 Dec 2023 01:21:40 +0900 Subject: [PATCH] [revise]: revise deploy-image.yml for env file --- .github/workflows/deploy-image.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index ef35e40..18239c2 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -29,6 +29,18 @@ jobs: uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: ${{ env.REGISTRY }}/IMHOJEONG/${{ matrix.context }} + - name: Set up Env File + shell: bash + run: | + echo "DATABASE_HOST=$DATABASE_HOST" >> .env.production + echo "DATABASE_USER=$DATABASE_USER" >> .env.production + echo "DATABASE_PASS=$DATABASE_PASS" >> .env.production + echo "MEILISEARCH_HOST=$MEILISEARCH_HOST" >> .env.production + env: + DATABASE_HOST: ${{ secrets.DATABASE_HOST }} + DATABASE_USER: ${{ secrets.DATABASE_USER }} + DATABASE_PASS: ${{ secrets.DATABASE_PASS }} + MEILISEARCH_HOST: ${{ secrets.MEILISEARCH_HOST }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx