Skip to content

Commit

Permalink
packages: tagged commit force push to live repo
Browse files Browse the repository at this point in the history
If the commit tagged, then push packages to 'live' repository with force
push '-f -s' flags to be sure that if occasionaly the commit before current
commit pushed packages with the current branch naming then the current push
won't fail on it and will push the packages to the release repository after.

Closes #3745
  • Loading branch information
avtikhon committed Oct 8, 2020
1 parent 0dc7281 commit 029eade
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .gitlab.mk
Expand Up @@ -120,11 +120,18 @@ package: deploy_prepare

deploy: package
echo ${GPG_SECRET_KEY} | base64 -d | gpg --batch --import || true
./tools/update_repo.sh -o=${OS} -d=${DIST} \
-b="${LIVE_REPO_S3_DIR}/${BUCKET}" build
# If the commit tagged, then push packages to 'live' repository with force
# push '-f -s' flags to be sure that if occasionaly the commit before current
# commit pushed packages with the current branch naming then the current push
# won't fail on it and will push the packages to the release repository after.
if [ "${CI_COMMIT_TAG}" != "" ]; then \
./tools/update_repo.sh -o=${OS} -d=${DIST} \
-b="${LIVE_REPO_S3_DIR}/${BUCKET}" -f -s build ; \
./tools/update_repo.sh -o=${OS} -d=${DIST} \
-b="${RELEASE_REPO_S3_DIR}/${BUCKET}" build ; \
else \
./tools/update_repo.sh -o=${OS} -d=${DIST} \
-b="${LIVE_REPO_S3_DIR}/${BUCKET}" build ; \
fi

source: deploy_prepare
Expand Down

0 comments on commit 029eade

Please sign in to comment.