对这篇文章的理解和整理。
Created an AWS account
Created an S3 bucket and set permissions to public access
Created an IAM user for GitLab to use
Create a GitLab account/project
Add our .gitlab-ci.yml and fill with our CI/CD stages
Add our IAM credentials as environment variables
Sit back, smile, and watch as your code is automatically deployed to S3 via GitLab’s CI/CD process
最终要实现的目的是,gitlab上合并代码到master分支上,gitlab能自动把source编译,然后发布到S3的“staging”存储桶。
githab上打了一个新的tag时也会自动编译,并把编译好的taget目录放到S3的“Prod”存储桶
关键点,就是在gitlab工程的根目录下,把这个.gitlab-ci.yml文件放好,并需改好。主要内容如下: