Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 1d88a10

Browse files
committed
Fixing build action triggers
Rationale: Kuksa-val build was triggered too often, But then, should we not trigger when certs and proto files are changed as well (Even if some use symbolic links)
1 parent 9065760 commit 1d88a10

6 files changed

+26
-119
lines changed

.github/workflows/clean-images.yml

-94
This file was deleted.

.github/workflows/kuksa-client.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ on:
2121
paths:
2222
- ".github/workflows/kuksa-client.yml"
2323
- "kuksa-client/**"
24+
- "kuksa_certificates/**"
25+
- "proto/**"
2426
workflow_dispatch:
2527

2628
jobs:

.github/workflows/kuksa-go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
paths:
2222
- ".github/workflows/kuksa-go.yml"
2323
- "kuksa_go_client/**"
24+
- "proto/**"
2425
workflow_dispatch:
2526

2627
jobs:
@@ -48,4 +49,3 @@ jobs:
4849
with:
4950
version: latest
5051
working-directory: kuksa_go_client
51-

.github/workflows/kuksa_databroker-cli_build.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
paths:
2121
- ".github/workflows/kuksa_databroker-cli_build.yml"
2222
- "kuksa_databroker/**"
23+
- "proto/**"
2324
- "Cargo.*"
2425
- "Cross.toml"
2526
workflow_call:
@@ -67,7 +68,7 @@ jobs:
6768

6869
steps:
6970
- uses: actions/checkout@v3
70-
with:
71+
with:
7172
submodules: recursive
7273

7374
- name: Docker meta
@@ -84,11 +85,11 @@ jobs:
8485
type=semver,pattern={{version}}
8586
type=semver,pattern={{major}}.{{minor}}
8687
type=semver,pattern={{major}}
87-
88-
# only needed for runners without buildx setup, will be slow
88+
89+
# only needed for runners without buildx setup, will be slow
8990
#- name: Set up QEMU
9091
# uses: docker/setup-qemu-action@v2
91-
92+
9293
# - name: Set up Docker Buildx
9394
# id: buildx
9495
# uses: docker/setup-buildx-action@v2
@@ -130,13 +131,13 @@ jobs:
130131
push: true
131132
tags: "ttl.sh/kuksa.val/kuksa-databroker-cli-${{github.sha}}"
132133
labels: ${{ steps.meta.outputs.labels }}
133-
134+
134135

135136
- name: Posting message
136137
uses: ./.github/actions/post-container-location
137138
with:
138139
image: ttl.sh/kuksa.val/kuksa-databroker-cli-${{github.sha}}
139-
140+
140141
- name: Extracting ARM64 binaries
141142
uses: ./.github/actions/copy-from-oci
142143
with:

.github/workflows/kuksa_databroker_build.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
paths:
2121
- ".github/workflows/kuksa_databroker_build.yml"
2222
- "kuksa_databroker/**"
23+
- "proto/**"
2324
- "Cargo.*"
2425
- "Cross.toml"
2526
workflow_call:
@@ -100,7 +101,7 @@ jobs:
100101

101102
steps:
102103
- uses: actions/checkout@v3
103-
with:
104+
with:
104105
submodules: recursive
105106

106107
- name: Docker meta
@@ -117,11 +118,11 @@ jobs:
117118
type=semver,pattern={{version}}
118119
type=semver,pattern={{major}}.{{minor}}
119120
type=semver,pattern={{major}}
120-
121-
# only needed for runners without buildx setup, will be slow
121+
122+
# only needed for runners without buildx setup, will be slow
122123
#- name: Set up QEMU
123124
# uses: docker/setup-qemu-action@v2
124-
125+
125126
#- name: Set up Docker Buildx
126127
# id: buildx
127128
# uses: docker/setup-buildx-action@v2
@@ -163,7 +164,7 @@ jobs:
163164
push: true
164165
tags: "ttl.sh/kuksa.val/kuksa-databroker-${{github.sha}}"
165166
labels: ${{ steps.meta.outputs.labels }}
166-
167+
167168
- name: Posting message
168169
uses: ./.github/actions/post-container-location
169170
with:
@@ -179,7 +180,7 @@ jobs:
179180
export: true
180181
transform: s/app/databroker/
181182

182-
183+
183184
- name: Extracting AMD64 binaries
184185
uses: ./.github/actions/copy-from-oci
185186
with:
@@ -196,9 +197,9 @@ jobs:
196197
needs: [build-container]
197198

198199
steps:
199-
200+
200201
- uses: actions/checkout@v3
201-
202+
202203
- name: Run integration test
203204
env:
204205
DATABROKER_IMAGE: ttl.sh/kuksa.val/kuksa-databroker-${{github.sha}}

.github/workflows/kuksa_val_docker.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8-
paths-ignore:
9-
- ".github/workflows/kuksa_databroker_build.yml"
10-
- "kuksa_databroker/**"
11-
- "kuksa_go_client/**"
12-
- "kuksa_client/**"
13-
- "Cargo.*"
14-
- "Cross.toml"
8+
paths:
9+
- ".github/workflows/kuksa_val_docker.yml"
10+
- "kuksa-val-server/**"
11+
- "kuksa_certificates/**"
1512
workflow_dispatch:
16-
13+
1714
jobs:
1815
checkrights:
1916
uses: ./.github/workflows/check_push_rights.yml
@@ -26,7 +23,7 @@ jobs:
2623

2724
steps:
2825
- uses: actions/checkout@v3
29-
with:
26+
with:
3027
submodules: recursive
3128

3229
- name: Docker meta
@@ -64,7 +61,7 @@ jobs:
6461
file: ./kuksa-val-server/docker/Dockerfile
6562
context: .
6663
push: true
67-
tags: |
64+
tags: |
6865
${{ steps.meta.outputs.tags }}
6966
ttl.sh/kuksa.val/kuksa-server-${{github.sha}}
7067
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)