Skip to content

Commit

Permalink
Refactor build.yaml to include environment variables for Docker image…
Browse files Browse the repository at this point in the history
… tags
  • Loading branch information
magicsih committed Sep 29, 2024
1 parent 4b061c3 commit 8cfa27a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ 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
uses: docker/build-push-action@v5
with:
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/${{ env.APP_NAME }}:${{ steps.commit.outputs.short }}
${{ secrets.DOCKER_USERNAME }}/${{ env.APP_NAME }}:latest
${{ secrets.DOCKER_REGISTRY }}/${{ env.APP_NAME }}:latest

0 comments on commit 8cfa27a

Please sign in to comment.