Blue green deployments and a better way of getting real files links into hugo
This commit is contained in:
@@ -3,6 +3,7 @@ image: shockrah/website:latest
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
- golive
|
||||
|
||||
|
||||
############## ################## ##############
|
||||
@@ -44,3 +45,23 @@ deploy-to-s3:
|
||||
# Upload the content to the bucket itself
|
||||
- cd main-site/ && aws s3 cp public s3://temper.tv/ --recursive
|
||||
|
||||
|
||||
|
||||
############## ################## ##############
|
||||
############## Refresh Container ##############
|
||||
############## ################## ##############
|
||||
|
||||
blue-green-deployment-nginx:
|
||||
stage: golive
|
||||
image:
|
||||
name: amazon/aws-cli:2.2.25
|
||||
entrypoint: [""]
|
||||
needs:
|
||||
- deploy-to-s3
|
||||
vars:
|
||||
service: athens-nginx-static-content
|
||||
cluster: athens-alpha-cluster
|
||||
before_script:
|
||||
- bash ci/verify-aws-fields.sh
|
||||
script:
|
||||
- aws ecs update-service --cluster $cluster --service $service --force-new-deployment
|
||||
|
||||
Reference in New Issue
Block a user