forked from parca-dev/parca-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.53 KB
/
jsonnet.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Jsonnet
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
skip-check:
name: Skip check
continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip-check.outputs.should_skip }}
permissions:
actions: write
contents: read
steps:
- id: skip-check
uses: fkirc/skip-duplicate-actions@9d116fa7e55f295019cfab7e3ab72b478bcf7fdd # tag=v4.0.0
with:
do_not_skip: '["schedule", "workflow_dispatch"]'
paths: |-
[
"**.jsonnet",
"**.libsonnet",
".github/workflows/jsonnet.yml",
".go-version",
"deploy/**"
]
skip_after_successful_duplicate: false
jsonnet-build:
needs: skip-check
if: ${{ needs.skip-check.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
- name: Set up Go
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # tag=v3.2.0
with:
go-version-file: .go-version
- name: Set up Jsonnet
run: ./env.sh
- name: Generate
run: cd deploy && make --always-make vendor manifests
- name: Archive generated manifests
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3.1.0
with:
name: manifests
path: |
deploy/manifests