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:
parent
8c1d05fc2f
commit
a0eb26e18c
1 changed files with 5 additions and 3 deletions
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue