Advertisement
sayanriju

Example Gitlab CI/CD Config for deploying static sites to AWS S3+Cloudfront

Oct 30th, 2020
2,595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.50 KB | None | 0 0
  1. dev_deploy:
  2.   stage: deploy
  3.   image: logicsquaretechnologies/node-awscli
  4.   script:
  5.    - unset CI
  6.     - npm install && npm run build:dev
  7.     - aws s3 sync ./build s3://$S3_BUCKET_NAME_DEV/ --delete --acl public-read
  8.   only:
  9.    - s3-deploy-dev
  10. live_deploy:
  11.   stage: deploy
  12.   image: logicsquaretechnologies/node-awscli
  13.   script:
  14.    - unset CI
  15.     - npm install && npm run build:live
  16.     - aws s3 sync ./build s3://$S3_BUCKET_NAME_LIVE/ --delete --acl public-read
  17.   only:
  18.    - s3-deploy-live
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement