BuildX doesn't like camelcase tags
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user