diff --git a/.github/workflows/patch.yaml b/.github/workflows/patch.yaml index 044ffd3..767ec2a 100644 --- a/.github/workflows/patch.yaml +++ b/.github/workflows/patch.yaml @@ -61,9 +61,13 @@ jobs: id: login run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Docker Tag Patched Image + if: steps.login.conclusion == 'success' + id: tag + run: echo "::set-output name=tagged-image::ghcr.io/$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')/$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]'):${{ steps.copa.outputs.patched-tag }}" + - name: Docker Push Patched Image to GitHub Container Registry if: steps.login.conclusion == 'success' - run: | - docker tag ${{ steps.copa.outputs.patched-image }} ghcr.io/${{ github.repository_owner | lower }}/${{ github.event.repository.name | lower }}:${{ steps.copa.outputs.patched-tag }} - docker push ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.copa.outputs.patched-tag }} + run: docker push ${{ steps.tag.outputs.tagged-image }} +