Commit a269a6a3 authored by Jamie Tanna's avatar Jamie Tanna

sq

parent bd05f9b8
Pipeline #107103248 passed with stage
in 3 minutes and 14 seconds
......@@ -13,76 +13,6 @@ stages:
- review
- production
build_test_site:
services:
- docker:dind
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $CONTAINER_BUILT_IMAGE -f Dockerfile.branch .
- docker push $CONTAINER_BUILT_IMAGE
# }}}
only:
- branches
except:
- master
theme_branch:
image: alpine:latest
stage: build
script:
- apk add --update git ruby
- ruby .ci/theme-branch.rb
# }}}
# Review Apps {{{
review_deploy:
image: ruby:2.5-alpine
stage: review
script:
- apk --update add git openssh-client
- bundle install --without build test
# ensure that deployments can use the SSH key that is passed in via the
# environment variables. Via https://docs.gitlab.com/ce/ci/ssh_keys/README.html
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- echo -e "$REVIEW_SSH_PRIVATE_KEY" > key
- chmod 600 key
- ssh-add key
- cap review deploy
environment:
name: review/$CI_COMMIT_REF_SLUG
url: https://$CI_COMMIT_REF_SLUG.$URL_REVIEW_SUFFIX
on_stop: review_stop
only:
- branches
except:
- master
review_stop:
image: ruby:2.5-alpine
stage: review
script:
- apk --update add git openssh-client
- bundle install --without build test
# ensure that deployments can use the SSH key that is passed in via the
# environment variables. Via https://docs.gitlab.com/ce/ci/ssh_keys/README.html
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- echo -e "$REVIEW_SSH_PRIVATE_KEY" > key
- chmod 600 key
- ssh-add key
- cap review stop
environment:
name: review/$CI_COMMIT_REF_SLUG
action: stop
when: manual
only:
- branches
except:
- master
# }}}
build_no_test_deploy_site:
services:
- docker:dind
......@@ -98,5 +28,3 @@ build_no_test_deploy_site:
- tar xvf netlifyctl-linux-amd64-0.4.0.tar.gz
- ./netlifyctl deploy -s fa4dd95a-994e-4f89-8a7a-2d9e9fc36a32 -P public -A $NETLIFY_ACCESS_TOKEN
# }}}
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment