1
1
Fork 0
Signed by @spirillen
This commit is contained in:
spirillen 2021-09-11 17:43:39 +02:00
parent 32d58710cd
commit 9650aade07
No known key found for this signature in database
GPG Key ID: 30562ED6FB236E4E
1 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
- echo "$GIT_USER_NAME"+"_CI_ACCESS_TOKEN"
- echo "'"$GIT_USER_NAME""_CI_ACCESS_TOKEN"'"
- echo "$GITLAB_USER_LOGIN"
- echo "$GITLAB_USER_NAME"
- export DEBIAN_FRONTEND=noninteractive
@ -19,8 +19,8 @@ before_script:
- git config --global user.email "$GITLAB_USER_EMAIL"
- git config --global user.name "$GIT_USER_NAME"
- git remote set-url origin https://$GIT_USER_NAME:$GIT_USER_NAME_CI_ACCESS_TOKEN@mypdns.org/$CI_PROJECT_PATH.git
- gpg -v --import <(echo "$$GITLAB_USER_NAME_$GPG_PUB_KEY")
- gpg -v --import <(echo "$$GITLAB_USER_NAME_$GPG_PRIVATE_KEY")
- gpg -v --import <(echo "$$GITLAB_USER_LOGIN_$GPG_PUB_KEY")
- gpg -v --import <(echo "$$GITLAB_USER_LOGIN_$GPG_PRIVATE_KEY")
after_script:
- echo "After script section"
@ -29,7 +29,7 @@ after_script:
- git add .
- git commit -S -m "Source sorted by CI runner `date '+%F %T %Z %z'`"
- git status
- git push "https://${GITLAB_USER_NAME}:${MYPDNS_CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
- git push "https://${GITLAB_USER_LOGIN}:${MYPDNS_CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
- gpg --list-keys
- gpg --list-secret-keys
@ -66,4 +66,4 @@ build:
# - git add .
# - git commit -m "Auto committed from the CI runner `date '+%F %T %Z %z'`"
# - git status
# - git push "https://${GITLAB_USER_NAME}:${MYPDNS_CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
# - git push "https://${GITLAB_USER_LOGIN}:${MYPDNS_CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci