Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Use version parts as container version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
barthel authored Feb 1, 2024
1 parent 8a0c3b5 commit 965a1f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ jobs:
cd docker-asciidoctor/
echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin
TAG_NAME="${DOCKER_USER}/asciidoctor-base"
TAG="--tag ${TAG_NAME}:latest"
if [ "${CIRCLE_TAG}" != "" ]; then
TAG_NAME+=":${CIRCLE_TAG}"
else
TAG_NAME+=":latest"
TAG="--tag ${TAG_NAME}:${CIRCLE_TAG} --tag ${TAG_NAME}:${CIRCLE_TAG%%.*} --tag ${TAG_NAME}:${CIRCLE_TAG%.*}"
fi
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag ${TAG_NAME} \
${TAG} \
--build-arg BUILDKIT_MULTI_PLATFORM=1 \
--progress=plain \
--push .

0 comments on commit 965a1f8

Please sign in to comment.