Skip to content

Instantly share code, notes, and snippets.

@medteck
Forked from barryvdh/bitbucket-pipelines.yml
Last active February 7, 2023 15:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save medteck/b6fbb615d815c1b041633a898f89b59e to your computer and use it in GitHub Desktop.
Save medteck/b6fbb615d815c1b041633a898f89b59e to your computer and use it in GitHub Desktop.
Bitbucket Pipeline config for Laravel Vapor, make sure to `composer require laravel/vapor-cli` and set the VAPOR_API_TOKEN environment var.
image: bitnami/laravel
pipelines:
branches:
master:
- step:
name: Deploy Test
deployment: test
script:
- composer install --no-interaction --no-progress --prefer-dist
- /usr/bin/php vendor/bin/vapor deploy test --commit="$BITBUCKET_COMMIT"
- step:
name: Deploy Staging
deployment: staging
trigger: manual
script:
- composer install --no-interaction --no-progress --prefer-dist
- /usr/bin/php vendor/bin/vapor deploy staging --commit="$BITBUCKET_COMMIT"
- step:
name: Deploy Production
deployment: production
trigger: manual
script:
- composer install --no-interaction --no-progress --prefer-dist
- /usr/bin/php vendor/bin/vapor deploy production --commit="$BITBUCKET_COMMIT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment