Commit ac5db0b5 authored by Mark Harding's avatar Mark Harding

(feat): use delayed build step for auto advancement into production

No related merge requests found
Pipeline #73872067 waiting for delayed job with stages
......@@ -150,7 +150,7 @@ production:fpm:
- docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
- docker pull $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF
# Push to production registry
- docker tag $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF $REPOSITORY_URL_FPM:latest
- docker tag $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF $ECR_REPOSITORY_URL_FPM:latest
- docker push $ECR_REPOSITORY_URL_FPM:production
# Push to gitlab register
- docker tag $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF $CI_REGISTRY_IMAGE/fpm:latest
......@@ -159,7 +159,8 @@ production:fpm:
environment:
name: production
url: https://www.minds.com/
when: manual
when: delayed
start_in: 2 hours # reduce? can always be deployed manually earlier too
production:runners:
stage: deploy
......
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