From 2d94da4f19f37eb1390364ecd8915161f350ce2d Mon Sep 17 00:00:00 2001 From: irl Date: Thu, 16 Sep 2021 13:41:20 +0000 Subject: [PATCH 1/2] 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 From 244b83e1a1ead770405940446fe4fca1c4132380 Mon Sep 17 00:00:00 2001 From: irl Date: Thu, 16 Sep 2021 13:41:47 +0000 Subject: [PATCH 2/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ff74bf..7fa1656 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,4 +22,4 @@ s3-deploy: script: - aws s3 sync ./public s3://weblite-production-shared-shared-bucket --delete --only-show-errors only: - - master \ No newline at end of file + - main \ No newline at end of file