Skip to content

Commit

Permalink
Reorder workflows to update D2 after building the image
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Nov 24, 2024
1 parent 158c4b1 commit e15f59d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
workflow_run:
workflows:
- Docker
- Update D2
branches:
- main
types:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Docker

on:
repository_dispatch:
types: d2-update-trigger
workflow_dispatch:
workflow_run:
workflows:
- Update D2
types:
- completed

env:
REGISTRY_IMAGE: ghcr.io/pesca-dev/d2
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/update-d2.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Update D2

on:
repository_dispatch:
types: d2-update-trigger
workflow_run:
workflows:
- Docker
branches:
- main
types:
- completed

jobs:
update:
Expand Down

0 comments on commit e15f59d

Please sign in to comment.