CircleCI
Usage
rules:
- run-deploy:
conditions:
- environment='Staging'
- deployed_for>'4h'
- health='Healthy'
actions:
- trigger_build:
parameters:
run_deploy: true
environment: productionparameters:
run_deploy:
default: false
type: boolean
environment:
type: string
default: staging
jobs:
run-deploy:
docker:
- image: circleci/python:3.8.6
steps:
- run:
command: |
echo "Deploying to <<pipeline.parameters.environment>>"
workflows:
deploy:
when: << pipeline.parameters.run_deploy >>
jobs:
- run-deployLast updated
Was this helpful?