Angular deploy to S3 using Pipeline
Ref:
- https://indepth.dev/automate-angular-application-deployment-via-aws-codepipeline-2/ (VVI *****)
- https://lcloud.pl/en/multi-region-deployment/ (multiregion code deploy using pipeline )
- https://www.youtube.com/watch?v=ND8hujOoZ14&feature=youtu.be (simple code deploy to EC2 using pipeline and code deploy)
- https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-simple-codecommit.html (*******************)
- https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-example.html
- https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html
In codedeploy must be a appspec.yml or appspec.json that instruct the code deploy.
version: 0.0
os: linux
files:
- source: /*
destination: /var/www/angular-crud/dist/my-dream-app
hooks:
BeforeInstall:
- location: scripts/install_dependencies
timeout: 300
runas: root
- location: scripts/start_server
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: root
# version: 0.0
# os: linux
# files:
# - source: /tsconfig.json
# destination: /data/spw/client-eshop
# - source: /package.json
# destination: /data/spw/client-eshop
# - source: /tslint.json
# destination: /data/spw/client-eshop
# - source: /angular.json
# destination: /data/spw/client-eshop
# - source: /robots.txt
# destination: /data/spw/client-eshop
# - source: /sitemap.xml
# destination: /data/spw/client-eshop
# - source: /e2e/
# destination: /data/spw/client-eshop/e2e
# - source: /src/
# destination: /data/spw/client-eshop/src
# hooks:
# BeforeInstall:
# - location: scripts/remove_root_dir
# timeout: 900
# runas: root
# AfterInstall:
# - location: scripts/install_dependencies
# timeout: 900
# runas: root
# - location: scripts/start_server
# timeout: 300
# runas: root
# ApplicationStop:
# - location: scripts/stop_server
# timeout: 300
# runas: root
No comments:
Post a Comment