From b56e3e4a9f6e21044b615ba33191865435d3f3be Mon Sep 17 00:00:00 2001 From: Razvan-Liviu Varzaru Date: Thu, 8 Aug 2024 10:08:35 +0300 Subject: [PATCH] Enable push for GHCR --- .../bbw_build_container_template.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/bbw_build_container_template.yml b/.github/workflows/bbw_build_container_template.yml index 17123cbc..1d7d1ee3 100644 --- a/.github/workflows/bbw_build_container_template.yml +++ b/.github/workflows/bbw_build_container_template.yml @@ -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' }}