Created
March 6, 2020 15:18
-
-
Save toocool/ac74f09074566320dbafaf3f6c8cb337 to your computer and use it in GitHub Desktop.
Bitbucket yaml file for parallel Laravel deployment
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: atlassian/default-image:2 | |
pipelines: | |
branches: | |
master: | |
- parallel: | |
- step: | |
name: "Zip the web code" | |
script: | |
- zip -r your-application.zip . -x "vendor/*" | |
artifacts: | |
- /your-application.zip | |
- step: | |
name: "Zip the queue worker code" | |
script: | |
- zip -r your-application-queue.zip . -x "vendor/*" | |
artifacts: | |
- your-application-queue.zip | |
- parallel: | |
- step: | |
name: "Deploy to production web" | |
deployment: production | |
script: | |
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.5.2 | |
variables: | |
AWS_ACCESS_KEY_ID: 'your aws access key ID' | |
AWS_SECRET_ACCESS_KEY: 'your aws secret access key' | |
AWS_DEFAULT_REGION: 'the region you created the application' | |
APPLICATION_NAME: 'your-application-name' | |
ENVIRONMENT_NAME: 'production-web' | |
ZIP_FILE: 'your-application.zip' | |
S3_BUCKET: 'your-application-elasticbeanstalk-deployment' | |
VERSION_LABEL: your-application-web_${BITBUCKET_COMMIT:0:8} | |
- step: | |
name: "Deploy to production queue server" | |
script: | |
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.5.2 | |
variables: | |
AWS_ACCESS_KEY_ID: 'your aws access key ID' | |
AWS_SECRET_ACCESS_KEY: 'your aws secret access key' | |
AWS_DEFAULT_REGION: 'the region you created the application' | |
APPLICATION_NAME: 'your-application-name' | |
ENVIRONMENT_NAME: 'production-worker' | |
ZIP_FILE: 'your-application-queue.zip' | |
S3_BUCKET: 'your-application-elasticbeanstalk-deployment' | |
VERSION_LABEL: your-application-queue_${BITBUCKET_COMMIT:0:8} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment