Skip to content

Commit e581c77

Browse files
committed
Trigger LFX Gateway Deployments for new Containers
Triggers a deployment of the lfx-gateway when a new version of the traefik container is published. Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
1 parent 2716fff commit e581c77

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,23 @@ jobs:
8282
tags: ${{ steps.meta.outputs.tags }}
8383
labels: ${{ steps.meta.outputs.labels }}
8484
push: true
85+
trigger-deploy:
86+
name: Trigger New Deployment
87+
runs-on: ubuntu-latest
88+
if: github.repository == 'linuxfoundation/traefik'
89+
needs:
90+
- publish
91+
steps:
92+
- name: Trigger LFX Gateway Deployment
93+
run: |
94+
repo_owner=linuxfoundation
95+
repo_name=lfx-gateway
96+
event_type=container_published
97+
98+
curl -L \
99+
-X POST \
100+
-H "Accept: application/vnd.github+json" \
101+
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
102+
-H "X-GitHub-Api-Version: 2022-11-28" \
103+
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
104+
-d "{\"event_type\": \"$event_type\"}"

0 commit comments

Comments
 (0)