fix: update Docker tags to use lowercase repository name and add arm/v6 platform

This commit is contained in:
Daniel Lavrushin 2026-02-28 09:33:12 +01:00
parent 8f266a20a1
commit 2f81c5e8c8
No known key found for this signature in database
GPG key ID: 57F1CAB57AD35056

View file

@ -199,11 +199,12 @@ jobs:
- name: Determine tags
id: tags
run: |
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
TAGS="lavrushin/b4:${{ env.VERSION }}"
TAGS="${TAGS},ghcr.io/${{ github.repository }}:${{ env.VERSION }}"
TAGS="${TAGS},ghcr.io/${REPO_LOWER}:${{ env.VERSION }}"
if [ "${{ inputs.prerelease }}" != "true" ]; then
TAGS="${TAGS},lavrushin/b4:latest"
TAGS="${TAGS},ghcr.io/${{ github.repository }}:latest"
TAGS="${TAGS},ghcr.io/${REPO_LOWER}:latest"
fi
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
@ -211,7 +212,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
push: true
build-args: |
VERSION=${{ env.VERSION }}