beardyjay.co.uk

My main website source code, uses Hugo.
Log | Files | Refs

commit 0ede8869764e62f3b56c68c34e55cd06fd274c12
parent 5e60739b265ac880d5ca92b189e5cac12959d2a3
Author: Jay Scott <jay@beardyjay.co.uk>
Date:   Wed, 14 Nov 2018 11:33:07 +0000

adding deployment todocker cluster

Diffstat:
M.gitlab-ci.yml | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -9,7 +9,7 @@ stages: variables: CLUSTER_NAME: "beardyjay-infrastructure" CLUSTER_REGION: "eu-west-1" - SERVICE_NAME: "beardyjay-start-Deployment-6G763HTMKH54-Service-AH1GYUY07A1X" + SERVICE_NAME: "beardyjay-site-Deployment-L8Y2YTHJNCYA-Service-1UJ0PMTX9U4MB" before_script: - docker info @@ -26,3 +26,10 @@ build: - docker push "$CI_REGISTRY_IMAGE" only: - master + +deploy: + stage: deploy + script: + - aws ecs update-service --cluster $CLUSTER_NAME --service $SERVICE_NAME --force-new-deployment --region $CLUSTER_REGION + only: + - master