ci: move after_script to script

- after_script is not executed for unknown reason
This commit is contained in:
curben 2020-04-20 09:56:05 +01:00
parent 1ff75420f9
commit bc370a98ec
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 0 additions and 13 deletions

View File

@ -20,19 +20,6 @@ deploy_job:
# Commit the changes
- sh utils/commit.sh
after_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- echo "$GH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- git checkout master
- git config --global user.name "curben-bot"
- git config --global user.email "3048979-curben-bot@users.noreply.gitlab.com"
# Generate successful status badge
- mkdir -p .gitlab/
- sh utils/badge.sh "success"