forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 1.07 KB
/
on_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "On Release"
on:
release:
types: [published]
jobs:
trigger_docker_build:
name: Trigger decidim/docker build
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Send dispatch for Github Container Registry build
run: |
curl --fail --show-error \
--request POST \
--user "decidim-bot:${{ secrets.DOCKER_WORKFLOW_PAT }}" \
--header "Accept: application/vnd.github.everest-preview+json" \
--header "Content-Type: application/json" \
https://api.github.com/repos/decidim/docker/actions/workflows/github_registry.yml/dispatches \
--data '{"ref": "master"}'
- name: Send dispatch for Docker Hub build
run: |
curl --fail --show-error \
--request POST \
--user "decidim-bot:${{ secrets.DOCKER_WORKFLOW_PAT }}" \
--header "Accept: application/vnd.github.everest-preview+json" \
--header "Content-Type: application/json" \
https://api.github.com/repos/decidim/docker/actions/workflows/dockerhub.yml/dispatches \
--data '{"ref": "master"}'