diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e6036f..ffde302 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,10 +7,7 @@ stages: # List of stages for jobs, and their order of execution get-build-repo: # This job runs in the build stage, which runs first. stage: get before_script: - - apt-get update -y && apt-get install -yqqf openssh-client git unzip sshpass rsync --fix-missing - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client git -y )' - eval $(ssh-agent -s) - - echo "$GITLAB_DEPLOY_KEY" - echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh @@ -33,8 +30,6 @@ get-build-repo: # This job runs in the build stage, which runs first. build-packages: # This job runs in the deploy stage. stage: build # It only runs when *both* jobs in the test stage complete successfully. before_script: - - apt-get update -y && apt-get install -yqqf openssh-client git unzip sshpass rsync --fix-missing - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client git -y )' - eval $(ssh-agent -s) - echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null