diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 745a7bc..e655ba8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,23 +51,23 @@ stages: # - sh sh/clean.sh build: -stage: build -environment: Production -tags: - - atlasvoyages-runner -only: - - master -script: - # - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - # # Run ssh-agent (inside the build environment) - # - eval $(ssh-agent -s) - # # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store - # - ssh-add <(echo "$SSH_PRIVATE_KEY_64" | base64 -d) - # - mkdir -p ~/.ssh - # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - - chmod +x sh/run.sh - - docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY_TEST" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" -f docker/Dockerfile -t atlasvoyages-docker:prod . - - sh sh/clean.sh + stage: build + environment: Production + tags: + - atlasvoyages-runner + only: + - master + script: + # - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + # # Run ssh-agent (inside the build environment) + # - eval $(ssh-agent -s) + # # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store + # - ssh-add <(echo "$SSH_PRIVATE_KEY_64" | base64 -d) + # - mkdir -p ~/.ssh + # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + - chmod +x sh/run.sh + - docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY_TEST" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" -f docker/Dockerfile -t atlasvoyages-docker:prod . + - sh sh/clean.sh deploy: stage: deploy