From edb6cfab2dd868f6243de557244bfadf6bdb73ea Mon Sep 17 00:00:00 2001 From: yrzr Date: Thu, 27 Aug 2020 14:42:41 +0800 Subject: [PATCH] fix build --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a471c40..9b3957a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,7 +51,9 @@ build: - echo "DOWNLOAD_URL=https://${PKG_SERVER_URL}/gitlab-ce_${CI_COMMIT_TAG}_arm64.deb" >> RELEASE # use ubuntu 20.04 instead of 16.04 - 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 - 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