fix(docker): Fix docker tag for alpine build (#1487)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 15m32s
CI / go-mod (push) Failing after 15m30s
CI / golangci-lint (push) Failing after 15m28s
Release a tag / release (push) Failing after 15m26s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.13) (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
Some checks failed
Extra / Vulnerability scanner (push) Failing after 15m32s
CI / go-mod (push) Failing after 15m30s
CI / golangci-lint (push) Failing after 15m28s
Release a tag / release (push) Failing after 15m26s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.13) (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
This commit is to avoid tag overriding due to parallel build for multiple base images (e.g. debian and alpine). Closes #1483 #1486 Signed-off-by: Tam Mach <sayboras@yahoo.com>
This commit is contained in:
parent
0b245262a0
commit
52d26a3b72
15
.github/workflows/tag.yml
vendored
15
.github/workflows/tag.yml
vendored
@ -56,6 +56,15 @@ jobs:
|
||||
echo ::set-output name=major_tag::${MAJOR}
|
||||
echo ::set-output name=short_commit::${SHORT_COMMIT}
|
||||
echo ::set-output name=date::${DATE}
|
||||
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
|
||||
echo ::set-output name=full_tag_name::${TAG}-alpine
|
||||
echo ::set-output name=full_major_tag::${MAJOR}-alpine
|
||||
echo ::set-output name=latest_tag::latest-alpine
|
||||
else
|
||||
echo ::set-output name=full_tag_name::${TAG}
|
||||
echo ::set-output name=full_major_tag::${MAJOR}
|
||||
echo ::set-output name=latest_tag::latest
|
||||
fi
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
@ -78,6 +87,6 @@ jobs:
|
||||
SHORT_COMMIT=${{ steps.prepare.outputs.short_commit }}
|
||||
DATE=${{ steps.prepare.outputs.date }}
|
||||
tags: |
|
||||
golangci/golangci-lint:${{ steps.prepare.outputs.tag_name }}
|
||||
golangci/golangci-lint:${{ steps.prepare.outputs.major_tag }}
|
||||
golangci/golangci-lint:latest
|
||||
golangci/golangci-lint:${{ steps.prepare.outputs.full_tag_name }}
|
||||
golangci/golangci-lint:${{ steps.prepare.outputs.full_major_tag }}
|
||||
golangci/golangci-lint:${{ steps.prepare.outputs.latest_tag }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user