Update .gitlab-ci.yml file

This commit is contained in:
Iain Learmonth 2021-09-16 13:41:20 +00:00
parent eb05fa0bb1
commit 2d94da4f19

View file

@ -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