在我的bitbucket-pipelines.yml文件中,我有这个:
- step:
image: python:3.7.2-stretch
name: upload to s3
script:
- export S3_BUCKET="elasticbeanstalk-us-east-1-133233433288"
- export VERSION_LABEL=$(cat VERSION_LABEL)
- sudo apt-get install -y zip # required for packaging up the application
- pip install boto3==1.3.0 # required for upload_to_s3.py
- zip --exclude=*.git* -r /tmp/artifact.zip . # package up the application for deployment
- python upload_to_s3.py # run the deployment script
但是当我在 Bitbucket 中运行这个管道时,我得到一个错误,输出:
+ sudo apt-get install -y zip
bash: sudo: command not found
为什么它不知道是什么sudo意思?这不是所有 Linux 机器都通用的吗?
眼眸繁星
白猪掌柜的
相关分类