I have the following pipeline that I am struggling with
image: mingc/android-build-box:latest
pipelines:
branches:
development:
- step:
caches:
- gradle
script:
- chmod +x gradlew
- ./gradlew assembleDebug
artifacts:
- app/build/outputs/apk/debug/*.apk
release:
- step:
name: Build and Sign
caches:
- gradle
script:
- chmod +x gradlew
- ./gradlew clean assembleRelease
artifacts:
- app/build/outputs/apk/release/*.apk
- step:
name: Deploy to AWS
deployment: Production
script:
- pipe: atlassian/aws-s3-deploy:0.2.4
variables:
AWS_ACCESS_KEY_ID: 'mykeyid'
AWS_SECRET_ACCESS_KEY: 'myaccess'
AWS_DEFAULT_REGION: 'eu-west-2'
S3_BUCKET: 'mybucket'
LOCAL_PATH: '????'
Whatever I try as the local path for my artifact results in a 'local path must be a directory error'
How can I deploy my apk to s3?
Thank you for adding the bitbucket-pipelines.yml file.
Assuming the release > Build and Sign step is correctly creating the files at <BITBUCKET_CLONE_DIR>/app/build/outputs/apk/release/ and the apk files are published, you should have them in the same path on release > Deploy to AWS step.
This should work for your LOCAL_PATH variable:
LOCAL_PATH: './app/build/outputs/apk/release'
If that does not work for you, please add the following line in your script section for the release > Deploy to AWS step:
find ./app/build/outputs/apk/release
and check if you see the apk files there before the pipe.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.