Skip to content

Commit

Permalink
PUBLISH new version to andriilundiak on DockerHub and ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-lundiak committed Sep 15, 2022
1 parent 5a52fba commit 63cfd1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Build and Publish
env:
TAG: ${{ github.ref_name }}
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags') }} # Another way to get event of Release (because github.event_name = 'push' and not 'release'). Seems to be GitHub Actions bug.
USE_DOCKERHUB: false
USE_DOCKERHUB: true
USE_GHCR: true
testStr: "event_name: ${{ github.event_name }} | ref: ${{ github.ref }} | ref_name: ${{ github.ref_name }}"

Expand Down Expand Up @@ -49,9 +49,9 @@ jobs:
# platforms: linux/amd64,linux/arm64 # by default linux.amd64
push: ${{ env.IS_RELEASE == 'true' }}
# to use DockerHub here, need to add below two tags lines:
# ${{ secrets.DOCKERHUB_USERNAME }}/kube-nginx-proxy:${{ env.TAG }}
# ${{ secrets.DOCKERHUB_USERNAME }}/kube-nginx-proxy:latest
tags: |
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/kube-nginx-proxy:${{ env.TAG }}
${{ secrets.DOCKERHUB_USERNAME }}/kube-nginx-proxy:latest
ghcr.io/${{ github.repository_owner }}/kube-nginx-proxy:${{ env.TAG }}
ghcr.io/${{ github.repository_owner }}/kube-nginx-proxy:latest

0 comments on commit 63cfd1b

Please sign in to comment.