我使用circleCI 2.0,他們無法找到AWS但他們documents清楚地說,AWS安裝在默認circleci 2.0找不到awscli
當我使用這個circle.yml
version: 2
jobs:
build:
working_directory: ~/rian
docker:
- image: node:boron
steps:
- checkout
- run:
name: Pre-Dependencies
command: mkdir ~/rian/artifacts
- restore_cache:
keys:
- rian-{{ .Branch }}-{{ checksum "yarn.lock" }}
- rian-{{ .Branch }}
- rian-master
- run:
name: Install Dependencies
command: yarn install
- run:
name: Test
command: |
node -v
yarn run test:ci
- save_cache:
key: rian-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- "~/.cache/yarn"
- store_artifacts:
path: ~/rian/artifacts
destination: prefix
- store_test_results:
path: ~/rian/test-results
- deploy:
command: aws s3 sync ~/rian s3://rian-s3-dev/ --delete
發生
以下錯誤:
/bin/bash: aws: command not found
Exited with code 127
,所以如果我編輯的代碼,這樣
- deploy:
command: |
apt-get install awscli
aws s3 sync ~/rian s3://rian-s3-dev/ --delete
然後我得到另一種錯誤的:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package awscli
Exited with code 100
任何人知道如何解決這個問題???
*「我使用circleCI 2.0,他們無法找到AWS但他們的[文件](https://circleci.com/docs/1.0/build-image-trusty/#awscli)明確地說......「* - 停在那裏,看看網址。您正在使用Circle 2.0,但閱讀了Circle 1.0文檔。 –