BuildX doesn't like camelcase tags

This commit is contained in:
2025-11-07 21:24:12 +10:30
parent 35d4eccdfd
commit 36f2f0c2f9
2 changed files with 18 additions and 8 deletions
+8 -4
View File
@@ -14,7 +14,11 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- name: Convert to lowercase
id: github_repository_to_lowercase
uses: step-security/change-string-case-action@v6
with:
inputStr: ${{ github.repository }} # Replace with your variable
# ------------------------------------------------------------------
# 1. Checkout repository
# ------------------------------------------------------------------
@@ -51,9 +55,9 @@ jobs:
# do not push yet
push: false
tags: |
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ github.repositorysteps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: |
# Add any build args here
# ARG_NAME=VALUE
+10 -4
View File
@@ -11,7 +11,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Convert to lowercase
id: github_repository_to_lowercase
uses: step-security/change-string-case-action@v6
with:
inputStr: ${{ github.repository }} # Replace with your variable
- name: Build image
id: build
uses: docker/build-push-action@v5
@@ -21,9 +27,9 @@ jobs:
# do not push yet
push: false
tags: |
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: |
# Add any build args here
# ARG_NAME=VALUE