My Build docs step succeeds, then it says ✖ LOCAL_PATH must be a directory. after downloading image for the Deploy step.
My yaml file:
#bitbucket-pipelines.yml
image: python:3.6.7
pipelines:
default:
- step:
name: Build docs
script:
- source ci_scripts/create_doc.sh $BITBUCKET_PIPELINES_BRANCH "doc_result"
artifacts:
- doc/$BITBUCKET_PIPELINES_BRANCH/**
- step:
name: Deploy
deployment: production
script:
- pipe: atlassian/aws-s3-deploy:0.2.1
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: "us-west-2"
S3_BUCKET: "tools-docs-dist-prod"
LOCAL_PATH: doc/$BITBUCKET_PIPELINES_BRANCH
ACL: "public-read"
CACHE_CONTROL: "max-age=3600"
EXPIRES: "2018-10-01T00:00:00+00:00"
DELETE_FLAG: "true"
EXTRA_ARGS: "--follow-symlinks"
DEBUG: "true"
My create_docs.sh script is similar to this one here: https://github.com/automl/auto-sklearn/blob/master/ci_scripts/create_doc.sh