0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2025-01-06 22:40:34 -05:00
imageproxy/.github/workflows/deploy.yml
Will Norris a0eb26e18c .github: run deploy workflow after successful docker push
Otherwise, it's very likely that the deploy would complete before the
new docker push, so we'd be redeploying an old image.
2022-12-12 22:47:30 -08:00

22 lines
516 B
YAML

name: deploy
on:
workflow_run:
workflows: [Docker]
types: [completed]
branches: [main]
concurrency:
group: production
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: production
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl -c etc/fly.toml deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}