Skip to content
Snippets Groups Projects
Commit de6c2a0a authored by Damien Pollet's avatar Damien Pollet :coffee:
Browse files

Try a deploy token

parent 3c169feb
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@ all : $(OUT_MARKUP) $(OUT_OTHERS)
prepare : $(OUT)
git fetch origin public
git worktree add $(OUT) public
if [[ -v DEPLOY_TOKEN ]]; then \
git config user.name "$GITLAB_USER_NAME"; \
git config user.email "$GITLAB_USER_EMAIL"; \
git remote set-url origin "https://cicd:${DEPLOY_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"; \
fi
wipe :
find $(OUT) -mindepth 1 -not -name '.git' -delete
......@@ -23,7 +28,7 @@ wipe :
publish :
git -C $(OUT) add .
git -C $(OUT) commit --message 'Publish from $(shell git rev-parse HEAD)'
git -C $(OUT) push origin
git -C $(OUT) push --push-option ci.skip origin HEAD:public
clean :
rm -fr $(OUT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment