mirror of
https://git.yrzr.tk/docker/gitlab-ce-arm64.git
synced 2024-11-24 13:28:12 +08:00
update latest tag
This commit is contained in:
parent
359cc88869
commit
1ce3990113
@ -54,7 +54,8 @@ build:
|
|||||||
- sed -i 's/less/less libatomic1/' ./Dockerfile
|
- sed -i 's/less/less libatomic1/' ./Dockerfile
|
||||||
- docker build -q -t ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG}-ce.0 -f ./Dockerfile ./
|
- docker build -q -t ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG}-ce.0 -f ./Dockerfile ./
|
||||||
# latest tag
|
# 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 push
|
||||||
- docker login --username ${DOCKER_USERNAME} --password ${DOCKER_PASSWORD}
|
- docker login --username ${DOCKER_USERNAME} --password ${DOCKER_PASSWORD}
|
||||||
- docker images && docker push ${DOCKER_NS}/${BASENAME}
|
- docker images && docker push ${DOCKER_NS}/${BASENAME}
|
||||||
|
Loading…
Reference in New Issue
Block a user