Skip to content
Snippets Groups Projects
Commit 1ce39901 authored by yrzr's avatar yrzr
Browse files

update latest tag

parent 359cc888
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,8 @@ build:
- sed -i 's/less/less libatomic1/' ./Dockerfile
- docker build -q -t ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG}-ce.0 -f ./Dockerfile ./
# latest tag
- cd ../../ && git fetch --tags && ./latest-tag.sh
- cd ../ && git fetch --tags && LATEST=$(git tag | sort -rV | head -n 1)
- if [ "${LATEST}" == "${CI_COMMIT_TAG}" ]; then docker tag ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG}-ce.0 ${DOCKER_NS}/${BASENAME}:latest; fi
# docker push
- docker login --username ${DOCKER_USERNAME} --password ${DOCKER_PASSWORD}
- docker images && docker push ${DOCKER_NS}/${BASENAME}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment