build: tags name must be lowercase
This commit is contained in:
1 parent
fbd501d5fd
commit
3301d29402
2 files changed
+10
-3
No files matched your search
@@ -25,7 +25,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract clean branch name
|
- name: Extract clean branch name
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
run: echo "CLEAN_BRANCH_NAME=$(echo ${{ github.head_ref || github.ref_name }} | sed 's|.*/||')" >> $GITHUB_ENV
|
run: |
|
||||||
|
echo "CLEAN_BRANCH_NAME=$(echo ${{ github.head_ref || github.ref_name }} | sed 's|.*/||')" >> $GITHUB_ENV
|
||||||
|
echo "REGISTRY_LOWER=$(echo '${{ env.REGISTRY }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
echo "REPOSITORY_LOWER=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@v3.1.0
|
uses: docker/login-action@v3.1.0
|
||||||
@@ -49,7 +52,7 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/aarch64
|
platforms: linux/amd64,linux/aarch64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ toLower(env.REGISTRY) }}/${{ toLower(github.repository) }}:${{ toLower(env.CLEAN_BRANCH_NAME) }}
|
${{ env.REGISTRY_LOWER }}/${{ env.REPOSITORY_LOWER }}:${{ env.CLEAN_BRANCH_NAME }}
|
||||||
labels: |
|
labels: |
|
||||||
branch=${{ env.CLEAN_BRANCH_NAME }}
|
branch=${{ env.CLEAN_BRANCH_NAME }}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Set lowercase registry and repository
|
||||||
|
run: |
|
||||||
|
echo "REGISTRY_LOWER=$(echo '${{ env.REGISTRY }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
echo "REPOSITORY_LOWER=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
||||||
with:
|
with:
|
||||||
@@ -39,7 +43,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/aarch64
|
platforms: linux/amd64,linux/aarch64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ toLower(env.REGISTRY) }}/${{ toLower(github.repository) }}:nightly
|
tags: ${{ env.REGISTRY_LOWER }}/${{ env.REPOSITORY_LOWER }}:nightly
|
||||||
labels: "nightly"
|
labels: "nightly"
|
||||||
- name: Generate artifact attestation
|
- name: Generate artifact attestation
|
||||||
uses: actions/attest-build-provenance@v1.4.4
|
uses: actions/attest-build-provenance@v1.4.4
|
||||||
|
|||||||
Reference in new issue
Block a user