Disabling the whole pipeline since the infra has changed
This commit is contained in:
parent
9a4a749f0a
commit
60f10c655f
111
.gitlab-ci.yml
111
.gitlab-ci.yml
@ -1,67 +1,44 @@
|
|||||||
image: shockrah/website:latest
|
# image: shockrah/website:latest
|
||||||
|
#
|
||||||
stages:
|
# stages:
|
||||||
- build
|
# - build
|
||||||
- deploy
|
# - deploy
|
||||||
- golive
|
#
|
||||||
|
#
|
||||||
|
# ############## ################## ##############
|
||||||
############## ################## ##############
|
# ############## Build Site Content ##############
|
||||||
############## Build Site Content ##############
|
# ############## ################## ##############
|
||||||
############## ################## ##############
|
#
|
||||||
|
#
|
||||||
|
# build-content:
|
||||||
build-content:
|
# stage: build
|
||||||
stage: build
|
# image: shockrah/website:latest
|
||||||
image: shockrah/website:latest
|
# only:
|
||||||
only:
|
# refs:
|
||||||
refs:
|
# - master
|
||||||
- master
|
# script:
|
||||||
script:
|
# - cd main-site/ && hugo
|
||||||
- cd main-site/ && hugo
|
# artifacts:
|
||||||
artifacts:
|
# expire_in: 1 week
|
||||||
expire_in: 1 week
|
# paths:
|
||||||
paths:
|
# - main-site/public/
|
||||||
- main-site/public/
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# ############## ################ ##############
|
||||||
|
# ############## Build Site Image ##############
|
||||||
############## ################## ##############
|
# ############## ################ ##############
|
||||||
############## Deploy Site ##############
|
#
|
||||||
############## ################## ##############
|
# build-image:
|
||||||
|
# stage: deploy
|
||||||
deploy-to-s3:
|
# image: docker:stable
|
||||||
stage: deploy
|
# services:
|
||||||
# Override entrypoint to avoid weird auto start shenanigans
|
# - docker:dind
|
||||||
image:
|
# only:
|
||||||
name: amazon/aws-cli:2.2.25
|
# refs:
|
||||||
entrypoint: [""]
|
# - master
|
||||||
needs:
|
# # Login to registery
|
||||||
- build-content
|
# before_script:
|
||||||
before_script:
|
# - docker login -u $DOCKER_USERNAME --password-stdin << $TOKEN
|
||||||
- bash ci/verify-aws-fields.sh
|
# script:
|
||||||
script:
|
# - cd ./main-site/ && docker build . -t $
|
||||||
# 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
|
|
||||||
variables:
|
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user