diff options
author | lovetox <philipp@hoerist.com> | 2022-06-01 23:44:20 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-06-01 23:44:20 +0300 |
commit | d261cbf709f6a1cbc6c8732e08ad5a599e45b4b5 (patch) | |
tree | 0c7ae541131daba9f6a28d5a8b6215d835588af2 /.gitlab-ci.yml | |
parent | e45ea4115c995362b4f4e66c4b83ad520616ff63 (diff) |
ci: Update gitlab-ci.yml
Make sure ssh-agent is running and chmod .ssh
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 978eff637..e5896f046 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -118,8 +118,10 @@ deploy-flatpak: rules: - if: '$CI_COMMIT_TAG' before_script: + - eval $(ssh-agent -s) # - echo "${FLATHUB_DEPLOY_KEY}" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh + - chmod 700 ~/.ssh - ssh-keyscan github.com >> ~/.ssh/known_hosts script: - git config user.email "$CI_GIT_USER_EMAIL" @@ -139,8 +141,10 @@ publish-release: rules: - if: '$CI_COMMIT_TAG' before_script: + - eval $(ssh-agent -s) - echo "${WEBSITE_DEPLOY_KEY}" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh + - chmod 700 ~/.ssh - ssh-keyscan dev.gajim.org >> ~/.ssh/known_hosts script: - git config --global user.email "$CI_GIT_USER_EMAIL" |