From 8cfa27a7bf03e90a723667d68b3ba3f47b88ef6d Mon Sep 17 00:00:00 2001 From: Ilhwan Seo Date: Sun, 29 Sep 2024 19:36:50 +0900 Subject: [PATCH] Refactor build.yaml to include environment variables for Docker image tags --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 206ab0b..a03e263 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,7 @@ jobs: - name: Log in to DockerHub uses: docker/login-action@v3 with: + registry: ${{ secrets.DOCKER_REGISTRY }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push @@ -34,5 +35,4 @@ jobs: with: push: true tags: | - ${{ secrets.DOCKER_USERNAME }}/${{ env.APP_NAME }}:${{ steps.commit.outputs.short }} - ${{ secrets.DOCKER_USERNAME }}/${{ env.APP_NAME }}:latest \ No newline at end of file + ${{ secrets.DOCKER_REGISTRY }}/${{ env.APP_NAME }}:latest \ No newline at end of file