Skip to content

Commit 5c174f5

Browse files
committed
ci: the container image name has to be lowercase
Signed-off-by: Davide Cavalca <[email protected]>
1 parent 728e1bf commit 5c174f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/container.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches:
88
- main
99

10+
env:
11+
REGISTRY: ghcr.io
12+
# This has to be lowercase
13+
IMAGE_NAME: asahilinux/mkdocs-asahi
14+
1015
jobs:
1116
build-and-push:
1217
runs-on: ubuntu-latest
@@ -18,7 +23,7 @@ jobs:
1823
uses: docker/login-action@v3
1924
if: github.event_name != 'pull_request'
2025
with:
21-
registry: ghcr.io
26+
registry: ${{ env.REGISTRY }}
2227
username: ${{ github.actor }}
2328
password: ${{ secrets.GITHUB_TOKEN }}
2429
- name: Setup Docker Buildx
@@ -27,7 +32,7 @@ jobs:
2732
uses: docker/build-push-action@v6
2833
with:
2934
platforms: linux/amd64,linux/arm64
30-
tags: ghcr.io/AsahiLinux/mkdocs-asahi:latest
35+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
3136
push: ${{ github.event_name != 'pull_request' }}
3237
cache-from: type=gha
3338
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)