Loading .gitlab-ci.yml +6 −2 Original line number Diff line number Diff line Loading @@ -16,8 +16,12 @@ stages: deploy: stage: deploy rules: - if: '"$DEPLOY_SSH_KEY" != "" && "$CI_COMMIT_REF_NAME" == "$CI_DEFAULT_BRANCH"' only: refs: - main variables: - $DEPLOY_SSH_KEY - $DEPLOY_HOSTKEY script: # Set up SSH - eval $(ssh-agent -s) Loading Loading
.gitlab-ci.yml +6 −2 Original line number Diff line number Diff line Loading @@ -16,8 +16,12 @@ stages: deploy: stage: deploy rules: - if: '"$DEPLOY_SSH_KEY" != "" && "$CI_COMMIT_REF_NAME" == "$CI_DEFAULT_BRANCH"' only: refs: - main variables: - $DEPLOY_SSH_KEY - $DEPLOY_HOSTKEY script: # Set up SSH - eval $(ssh-agent -s) Loading