forked from thought-machine/falco-probes
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1.21 KB
/
build-and-publish-probes.yaml
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
30
31
name: build-and-publish-probes
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day.
workflow_dispatch: {}
jobs:
generate-jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "./pleasew -p -v2 run //build/github/generate-operating-systems -- --out_file plz-out/github/operating-systems.json"
- id: set-operating-systems
run: echo "::set-output name=operating-systems::$(<plz-out/github/operating-systems.json)"
outputs:
operating-systems: ${{ steps.set-operating-systems.outputs.operating-systems }}
build-and-publish-probes:
permissions: write-all # there's no available permission configuration for releases (https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions).
needs: generate-jobs
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: ${{ fromJson(needs.generate-jobs.outputs.operating-systems) }}
steps:
- uses: actions/checkout@v2
- run: ./pleasew -p -v2 run //build/github/build-and-publish-probes-for-operating-system -- ${{ matrix.operating-system }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}