-
Notifications
You must be signed in to change notification settings - Fork 2k
29 lines (24 loc) · 1.08 KB
/
trigger-docker-main.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: 📦🚀 Trigger Main Docker Build
on:
push:
paths-ignore:
- "**.md"
branches:
- main
concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
trigger:
name: Trigger building a new `main` tag for the chia-docker image
runs-on: ubuntu-latest
steps:
- uses: Chia-Network/actions/github/jwt@main
- name: Trigger docker main workflow via github-glue
run: |
curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{}' ${{ secrets.GLUE_API_URL }}/api/v1/docker-build-main/${{ github.sha }}/start
curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{}' ${{ secrets.GLUE_API_URL }}/api/v1/docker-build-main/${{ github.sha }}/success/build-main