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