fix build

This commit is contained in:
yrzr 2020-08-27 14:42:41 +08:00
parent 063425e6d2
commit edb6cfab2d

View File

@ -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