mirror of
https://github.com/willnorris/imageproxy.git
synced 2025-01-06 22:40:34 -05:00
a0eb26e18c
Otherwise, it's very likely that the deploy would complete before the new docker push, so we'd be redeploying an old image.
22 lines
516 B
YAML
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 }}
|