ci: convert repository name to lowercase for Docker image tags
Build and Push Docker Image / build-and-push (push) Successful in 10m59s

This commit is contained in:
2026-08-21 17:18:38 +09:00
parent 2ee686f036
commit 6b81b0d5e7
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -14,6 +14,11 @@ jobs:
with:
token: ${{ secrets.CI_TOKEN }}
- name: Set lower case owner/repository
id: repo_name
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -29,4 +34,6 @@ jobs:
with:
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ gitea.repository }}:latest
tags: |
${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ env.REPO }}:latest
${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ env.REPO }}:${{ gitea.sha }}