fix(ci): normalize IMAGE_NAME to lowercase for registry compliance
This commit is contained in:
11
.github/workflows/docker-build.yml
vendored
11
.github/workflows/docker-build.yml
vendored
@@ -27,6 +27,12 @@ jobs:
|
||||
- name: 📥 Checkout code
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
|
||||
# Normalize IMAGE_NAME to lowercase to satisfy container registry format
|
||||
- name: 🔤 Normalize image name
|
||||
run: |
|
||||
raw="${{ github.repository_owner }}/${{ github.event.repository.name }}"
|
||||
echo "IMAGE_NAME=$(echo "$raw" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
|
||||
# Step 2: Set up QEMU for multi-platform builds (ARM, AMD64, etc.)
|
||||
- name: 🔧 Set up QEMU
|
||||
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
|
||||
@@ -160,6 +166,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Ensure normalized lowercase IMAGE_NAME for this job as well
|
||||
- name: 🔤 Normalize image name
|
||||
run: |
|
||||
raw="${{ github.repository_owner }}/${{ github.event.repository.name }}"
|
||||
echo "IMAGE_NAME=$(echo "$raw" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
# Step 1: Figure out which tag to test
|
||||
- name: 🏷️ Determine image tag
|
||||
id: tag
|
||||
|
||||
Reference in New Issue
Block a user