Skip to content

Commit

Permalink
test lowercase owner
Browse files Browse the repository at this point in the history
  • Loading branch information
swick committed Oct 8, 2024
1 parent 6266d09 commit 0576b75
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

- name: Check if image already exists on GHCR
id: check
run: |
image=ghcr.io/${{ github.repository_owner }}/xdg-desktop-portal:${{ env.IMAGE_TAG }}
image=ghcr.io/${{ env.OWNER_LC }}/xdg-desktop-portal:${{ env.IMAGE_TAG }}
echo "exists=$(docker manifest inspect $image >/dev/null && echo 'true' || echo 'false')" \
>> "$GITHUB_OUTPUT"
echo "image=$image" >> "$GITHUB_OUTPUT"
Expand All @@ -43,4 +49,4 @@ jobs:
with:
push: true
file: .github/workflows/Containerfile
tags: ghcr.io/${{ github.repository_owner }}/xdg-desktop-portal:${{ env.IMAGE_TAG }}
tags: ghcr.io/${{ env.OWNER_LC }}/xdg-desktop-portal:${{ env.IMAGE_TAG }}

0 comments on commit 0576b75

Please sign in to comment.