mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 08:35:42 +00:00
Consistancy in docker image tag
Stay consistent with docker image tag as per release version for good practice and standardization.
This commit is contained in:
parent
5df0e49b1e
commit
02b271a78d
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -58,13 +58,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
IMAGE_V_VERSION="$(git describe --tags --abbrev=0)"
|
IMAGE_VERSION="$(git describe --tags --abbrev=0)"
|
||||||
IMAGE_VERSION=${IMAGE_V_VERSION:1}
|
|
||||||
|
|
||||||
SHORT_SHA1=$(git rev-parse --short HEAD)
|
SHORT_SHA1=$(git rev-parse --short HEAD)
|
||||||
PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64"
|
PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64"
|
||||||
echo "Building and pushing version ${IMAGE_VERSION} of image ${IMAGE_NAME}"
|
echo "Building and pushing version ${IMAGE_VERSION} of image ${IMAGE_NAME}"
|
||||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
docker buildx build --platform "${PLATFORMS}" -t "${IMAGE_NAME}:${IMAGE_VERSION}" -t "${IMAGE_NAME}:latest" -t "${IMAGE_NAME}:4" \
|
docker buildx build --platform "${PLATFORMS}" -t "${IMAGE_NAME}:v${IMAGE_VERSION}" -t "${IMAGE_NAME}:latest" -t "${IMAGE_NAME}:4" \
|
||||||
--push .
|
--push .
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user