qrtr-services/bitbucket-pipelines.yml

31 lines
664 B
YAML

# Template python-build
# This template allows you to validate your python code.
# The workflow allows running tests and code linting on the default branch.
image: python:3.8
definitions:
steps:
- step: &deploy
name: Deploy
script:
- apt-get update -qq && apt-get install -y curl
- curl -L https://fly.io/install.sh | sh
- fly deploy -a $FLY_APP_NAME
pipelines:
branches:
master:
- step:
<<: *deploy
name: Deploy to Prod
deployment: Production
dev-master:
- step:
<<: *deploy
name: Deploy to Prod
deployment: Staging