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
|
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
|
||||||
|
|
Loading…
Reference in a new issue