mirror of
https://git.yrzr.tk/docker/gitlab-ce-arm64.git
synced 2024-11-22 14:38:12 +08:00
fix build
This commit is contained in:
parent
063425e6d2
commit
edb6cfab2d
@ -51,7 +51,9 @@ build:
|
|||||||
- echo "DOWNLOAD_URL=https://${PKG_SERVER_URL}/gitlab-ce_${CI_COMMIT_TAG}_arm64.deb" >> RELEASE
|
- echo "DOWNLOAD_URL=https://${PKG_SERVER_URL}/gitlab-ce_${CI_COMMIT_TAG}_arm64.deb" >> RELEASE
|
||||||
# use ubuntu 20.04 instead of 16.04
|
# use ubuntu 20.04 instead of 16.04
|
||||||
- sed -i 's/16.04/20.04/' ./Dockerfile
|
- sed -i 's/16.04/20.04/' ./Dockerfile
|
||||||
- docker build -q -t ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG} -f ./Dockerfile ./
|
# gitlab-ce depends on libatomic1; however: Package libatomic1 is not installed
|
||||||
|
- sed -i 's/less/less libatomic1/' ./Dockerfile
|
||||||
|
- docker build -t ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG} -f ./Dockerfile ./
|
||||||
# latest tag
|
# latest tag
|
||||||
- cd ../../ && git fetch --tags && LATEST=$(git tag | sort -rV | head -n 1)
|
- 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} ${DOCKER_NS}/${BASENAME}:latest; fi
|
- if [ "${LATEST}" == "${CI_COMMIT_TAG}" ]; then docker tag ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG} ${DOCKER_NS}/${BASENAME}:latest; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user