Skip to content

Commit

Permalink
ci: make repo owner lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Artonus committed Mar 1, 2024
1 parent 4508d0e commit 690840c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
env:
IMAGE_TAG: ${{ steps.get-version.outputs.VERSION }}
run: |
docker tag hermes ghcr.io/${{ github.repository_owner }}/hermes:${IMAGE_TAG}
# make github.repository_owner lowercase
REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
docker tag hermes ghcr.io/$REPO_OWNER/hermes:${IMAGE_TAG}
docker push ghcr.io/${{ github.repository_owner }}/hermes:${IMAGE_TAG}
if [[ ${{ steps.get-version.outputs.VERSION }} != *rc* ]]; then
docker tag hermes ghcr.io/${{ github.repository_owner }}/hermes:latest
docker push ghcr.io/${{ github.repository_owner }}/hermes:latest
docker tag hermes ghcr.io/$REPO_OWNER/hermes:latest
docker push ghcr.io/$REPO_OWNER/hermes:latest
fi

0 comments on commit 690840c

Please sign in to comment.