Created
August 21, 2019 14:27
-
-
Save davidtowoju/5e30ae129b9a9f5a62f349587eafab1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: php:7.1.29 | |
pipelines: | |
default: | |
- step: | |
name: "Build and Test" | |
script: | |
- apt-get update | |
- apt-get install -y zip | |
- mkdir dist | |
- zip -r dist/plugin-cicd.zip * -x vendor --exclude *.lock* --exclude *.yml* --exclude *.json* | |
artifacts: | |
- dist/** | |
- step: | |
name: Deploy | |
deployment: production | |
trigger: manual | |
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: $AWS_DEFAULT_REGION | |
S3_BUCKET: $S3_BUCKET | |
LOCAL_PATH: "dist" | |
ACL: "public-read" | |
CACHE_CONTROL: "max-age=3600" | |
EXPIRES: "2018-10-01T00:00:00+00:00" | |
DELETE_FLAG: "false" | |
EXTRA_ARGS: "--follow-symlinks" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment