Commit 0b532be5 authored by Eric Timmons's avatar Eric Timmons

Push updated nightly images using ssh

parent f64f4e67
Pipeline #2055 canceled with stages
in 24 seconds
......@@ -34,11 +34,12 @@ Update nightly images:
exit 0
fi
- NEW_COMMIT="$(grep -e "^ENV ABCL_COMMIT" nightly/buster/jdk-11/Dockerfile | cut -d" " -f 3)"
- git remote add origin-ssh "git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git
- git add .
- git config user.name "$GITLAB_USER_NAME"
- git config user.email "$GITLAB_USER_EMAIL"
- git commit -m "Update nightly to commit $NEW_COMMIT"
- GIT_SSH_COMMAND="ssh -i $NIGHTLY_DEPLOY_PRIVATE_KEY" git push origin $CI_COMMIT_BRANCH
- GIT_SSH_COMMAND="ssh -i $NIGHTLY_DEPLOY_PRIVATE_KEY" git push origin-ssh $CI_COMMIT_BRANCH
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment