BuildX doesn't like camelcase tags
This commit is contained in:
@@ -14,7 +14,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
steps:
|
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
|
# 1. Checkout repository
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
@@ -51,9 +55,9 @@ jobs:
|
|||||||
# do not push yet
|
# do not push yet
|
||||||
push: false
|
push: false
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
|
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
|
||||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
|
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
|
||||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest
|
${{ secrets.REGISTRY_HOST }}/${{ github.repositorysteps.github_repository_to_lowercase.outputs.lowercase }}:latest
|
||||||
build-args: |
|
build-args: |
|
||||||
# Add any build args here
|
# Add any build args here
|
||||||
# ARG_NAME=VALUE
|
# ARG_NAME=VALUE
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
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
|
- name: Build image
|
||||||
id: build
|
id: build
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
@@ -21,9 +27,9 @@ jobs:
|
|||||||
# do not push yet
|
# do not push yet
|
||||||
push: false
|
push: false
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
|
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
|
||||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
|
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
|
||||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest
|
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
|
||||||
build-args: |
|
build-args: |
|
||||||
# Add any build args here
|
# Add any build args here
|
||||||
# ARG_NAME=VALUE
|
# ARG_NAME=VALUE
|
||||||
Reference in New Issue
Block a user