Commit bb092d34 authored by John Jarvis's avatar John Jarvis

One deploy stage.

parent 7edc2ab3
Pipeline #12483871 passed with stages
in 12 minutes and 8 seconds
......@@ -40,28 +40,12 @@ test_challenges:
# DEPLOY
######################
deploy_prod:
deploy:
stage: deploy
image: registry.gitlab.com/jarv/cmdchallenge/ci-image
script:
- make build-docker-prod
- docker login -u jarv -p $REGISTRY_ACCESS_TOKEN registry.gitlab.com
- docker push registry.gitlab.com/jarv/cmdchallenge
- docker push registry.gitlab.com/jarv/cmdchallenge/prod
environment:
name: prod
only:
- release
deploy_staging:
stage: deploy
image: registry.gitlab.com/jarv/cmdchallenge/ci-image
script:
- make build-docker-staging
- docker login -u jarv -p $REGISTRY_ACCESS_TOKEN registry.gitlab.com
- docker push registry.gitlab.com/jarv/cmdchallenge
- docker push registry.gitlab.com/jarv/cmdchallenge/staging
environment:
name: staging
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