Skip to content

Commit 0c626aa

Browse files
Update docker.yml
1 parent 94d5843 commit 0c626aa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
registry: ghcr.io
2929
username: ${{ github.repository_owner }}
3030
password: ${{ secrets.GITHUB_TOKEN }}
31+
- name: downcase REPO
32+
run: |
33+
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
3134
- name: Build and push docker containers
3235
uses: docker/build-push-action@v4
3336
with:
@@ -38,10 +41,10 @@ jobs:
3841
MKDOCS_MATERIAL_VERSION=${{ vars.MKDOCS_MATERIAL_VERSION }}
3942
push: true
4043
tags: |
41-
${{ github.repository }}:${{ vars.MKDOCS_MATERIAL_VERSION }}
42-
${{ github.repository }}:latest
43-
ghcr.io/${{ github.repository }}:${{ vars.MKDOCS_MATERIAL_VERSION }}
44-
ghcr.io/${{ github.repository }}:latest
44+
${REPO}:${{ vars.MKDOCS_MATERIAL_VERSION }}
45+
${REPO}:latest
46+
ghcr.io/${REPO}:${{ vars.MKDOCS_MATERIAL_VERSION }}
47+
ghcr.io/${REPO}:latest
4548
- name: Sync readme.md to docker hub
4649
uses: ms-jpq/sync-dockerhub-readme@v1
4750
with:

0 commit comments

Comments
 (0)