Skip to content

Commit

Permalink
Enable push for GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanLiviuVarzaru committed Aug 8, 2024
1 parent 0dda099 commit b56e3e4
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/bbw_build_container_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Uncomment this when we disable the old workflow
# - name: Push images to ghcr.io
# if: ${{ env.DEPLOY_IMAGES == 'true' }}
# run: |
# msg="Push docker image to ghcr.io (${{ env.IMG }})"
# line="${msg//?/=}"
# printf "\n${line}\n${msg}\n${line}\n"
# skopeo copy --all --src-tls-verify=0 \
# docker://localhost:5000/${{ env.REPO }}:${{ env.IMG }} \
# docker://ghcr.io/${GITHUB_REPOSITORY,,}/${{ env.REPO }}:${{ env.IMG }}
- name: Push images to ghcr.io
if: ${{ env.DEPLOY_IMAGES == 'true' }}
run: |
msg="Push docker image to ghcr.io (${{ env.IMG }})"
line="${msg//?/=}"
printf "\n${line}\n${msg}\n${line}\n"
skopeo copy --all --src-tls-verify=0 \
docker://localhost:5000/${{ env.REPO }}:${{ env.IMG }} \
docker://ghcr.io/${GITHUB_REPOSITORY,,}/${{ env.REPO }}:${{ env.IMG }}
- name: Login to registry
if: ${{ env.DEPLOY_IMAGES == 'true' }}
Expand Down

0 comments on commit b56e3e4

Please sign in to comment.