33 lines
766 B
YAML
33 lines
766 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
|
|
- export FLYCTL_INSTALL="/root/.fly"
|
|
- export PATH="$FLYCTL_INSTALL/bin:$PATH"
|
|
- flyctl 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
|