From 2d94da4f19f37eb1390364ecd8915161f350ce2d Mon Sep 17 00:00:00 2001 From: irl Date: Thu, 16 Sep 2021 13:41:20 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8fed91..3ff74bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,3 @@ -image: alpine:latest pages: # the job must be named pages image: node:latest stage: deploy @@ -16,3 +15,11 @@ pages: # the job must be named pages - public # artifact path must be /public for GitLab Pages to pick it up only: - main + +s3-deploy: + stage: .post + image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest + script: + - aws s3 sync ./public s3://weblite-production-shared-shared-bucket --delete --only-show-errors + only: + - master \ No newline at end of file