Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Judge authored Sep 25, 2024
1 parent 9d6e186 commit 3ba24b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images (master -> latest)
uses: docker/build-push-action@v6.7.0
if: ${{ env.GITHUB_REF_NAME }} == 'master'
if: ${{ github.ref_name }} == 'master'
with:
pull: true
push: true
context: .
tags: ${{ secrets.DOCKERHUB_USERNAME }}/postfixadmin:latest
- name: Build and push Docker images (tag + master -> latest)
uses: docker/build-push-action@v6.7.0
if: ${{ env.GITHUB_REF_NAME }} != 'master'
if: ${{ github.ref_name }} != 'master'
with:
pull: true
push: true
context: .
tags: ${{ secrets.DOCKERHUB_USERNAME }}/postfixadmin:latest,${{ secrets.DOCKERHUB_USERNAME }}/postfixadmin:foo
tags: ${{ secrets.DOCKERHUB_USERNAME }}/postfixadmin:latest,${{ secrets.DOCKERHUB_USERNAME }}/postfixadmin:${{ github.ref_name }}

0 comments on commit 3ba24b0

Please sign in to comment.