Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Jan 5, 2024
1 parent 098bdb2 commit 2b4029e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}


0 comments on commit 2b4029e

Please sign in to comment.