List of aws-code-deploy

CodeDeploy で yarn build したときの buildspec.yml

Published at: 2018/05/23

多分これをつかいまわせばよいので、忘備録。ubuntu 正規フローでインストールするcache も指定する version: 0.2 phases: install: commands: - sudo apt-get update && sudo apt-get install apt-transport-https - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - sudo apt-get update && sudo apt-get install yarn pre_build: commands: - if [ -e /tmp/node_modules.tar ]; then tar xf /tmp/node_modules.tar; fi - yarn install build: commands: - yarn run build post_build: commands: - tar cf /tmp/node_modules.tar node_modules artifacts: files: [ '**/*' ] base-directory: build cache: paths: - /tmp/node_modules.tar参考:https://qiita.com/lohn/items/9c4c80d42af4050ed82fhttps://qiita.com/monamu/items/398c…