From 2b4029ee2c4ff5d203442a705152fd7732767f2c Mon Sep 17 00:00:00 2001 From: r3drun3 Date: Fri, 5 Jan 2024 15:47:18 +0100 Subject: [PATCH] ci: test Signed-off-by: r3drun3 --- .github/workflows/patch.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 }} +