Add step to prepare lowercase GHCR repository name in CI workflow
This commit is contained in:
parent
85fd7e0328
commit
e0a10eea52
1 changed files with 8 additions and 2 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
|
@ -57,6 +57,12 @@ jobs:
|
|||
name: Get current date
|
||||
id: date
|
||||
run: echo "date=$(date +'%Y.%m.%d')" >> "$GITHUB_OUTPUT"
|
||||
-
|
||||
name: Prepare GHCR repository name (lowercase)
|
||||
id: ghcr-repo
|
||||
run: |
|
||||
GHCR_REPO=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||
echo "repository=$GHCR_REPO" >> "$GITHUB_OUTPUT"
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
|
@ -91,8 +97,8 @@ jobs:
|
|||
tags: |
|
||||
${{ secrets.DOCKERHUB_REPOSITORY }}:latest
|
||||
${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.date.outputs.date }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
ghcr.io/${{ github.repository }}:${{ steps.date.outputs.date }}
|
||||
${{ steps.ghcr-repo.outputs.repository }}:latest
|
||||
${{ steps.ghcr-repo.outputs.repository }}:${{ steps.date.outputs.date }}
|
||||
|
||||
dockerhub-sync-readme:
|
||||
needs: dockerhub-build-push
|
||||
|
|
|
|||
Loading…
Reference in a new issue