0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

.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.
This commit is contained in:
Will Norris 2022-12-12 22:47:30 -08:00
parent 8c1d05fc2f
commit a0eb26e18c

View file

@ -1,8 +1,9 @@
name: deploy
on:
push:
branches:
- "main"
workflow_run:
workflows: [Docker]
types: [completed]
branches: [main]
concurrency:
group: production
@ -11,6 +12,7 @@ concurrency:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: production
steps:
- uses: actions/checkout@v3