Skip to content

Commit

Permalink
fix(CI): Fix DockerHub container release
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Dec 5, 2021
1 parent 11eabab commit 01b7534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: 🔐 Login to DockerHub
uses: docker/login-action@v1
if: ${{ env.PUSH_TO_DOCKERHUB == true }}
if: ${{ env.PUSH_TO_DOCKERHUB == 'true' }}
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
type=registry,ref=ghcr.io/${{ github.repository }}:latest
cache-to: type=gha,mode=max
- name: 🔄 Push container to DockerHub
if: ${{ env.PUSH_TO_DOCKERHUB == true }}
if: ${{ env.PUSH_TO_DOCKERHUB == 'true' }}
run: |
docker pull $SOURCE
docker tag $SOURCE $TARGET
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
IMAGE: ghcr.io/${{ github.repository }}
DIGEST: ${{ needs.docker-image.outputs.digest }}
- name: ⬇️ Pull Docker Hub Containers
if: ${{ env.PUSH_TO_DOCKERHUB == true }}
if: ${{ env.PUSH_TO_DOCKERHUB == 'true' }}
id: dockerhub
run: |
docker pull "${IMAGE}@${DIGEST}"
Expand Down

0 comments on commit 01b7534

Please sign in to comment.