Skip to content

Commit 4132395

Browse files
authored
fix(workflows): Various fixes and changes (#130)
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
2 parents 5ad3c4e + 21e22ce commit 4132395

33 files changed

+172
-41
lines changed

.github/actions/merge-oci-digests/action.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ runs:
3131
KRAFTKIT_RUNTIME_DIR: ${{ github.workspace }}/.kraftkit/runtime
3232
KRAFTKIT_LOG_LEVEL: debug
3333
KRAFTKIT_LOG_TYPE: basic
34+
KRAFTKIT_NO_CHECK_UPDATES: true
3435
run: |
35-
STAGING_RELEASE=$(curl https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name');
36-
wget https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb;
36+
STAGING_RELEASE=$(curl -sS https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name');
37+
wget -nv https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb;
3738
sudo dpkg -i kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb;
3839
kraft pkg ls --apps --all;
3940
kraft pkg push ${{ inputs.name }};

.github/workflows/library-base.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
- 'library/base/**'
2323
- '.github/workflows/library-base.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-bun1.1.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/bun1.1
1+
name: library/bun:1.1
22

33
on:
44
schedule:
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-bun1.1.yaml'
2020
- '!library/bun/1.1/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:
@@ -39,7 +44,7 @@ jobs:
3944
uses: unikraft/kraftkit@staging
4045
with:
4146
loglevel: debug
42-
workdir: library/bun1.1
47+
workdir: library/bun/1.1
4348
runtimedir: /github/workspace/.kraftkit
4449
plat: ${{ matrix.plat }}
4550
arch: ${{ matrix.arch }}

.github/workflows/library-caddy2.7.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/caddy2.7
1+
name: library/caddy:2.7
22

33
on:
44
repository_dispatch:
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-caddy2.7.yaml'
2525
- '!library/caddy/2.7/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-dragonfly1.14.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-dragonfly1.14.yaml'
2020
- '!library/dragonfly/1.14/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-findtime.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-findtime.yaml'
2020
- '!library/findtime/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-grafana10.2.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/grafana10.2
1+
name: library/grafana:10.2
22

33
on:
44
schedule:
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-grafana10.2.yaml'
2020
- '!library/grafana/10.2/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-haproxy2.8.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/haproxy2.8
1+
name: library/haproxy:2.8
22

33
on:
44
schedule:
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-haproxy2.8.yaml'
2020
- '!library/haproxy/2.8/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-helloworld.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
2121
- 'library/helloworld/**'
2222
- '.github/workflows/library-helloworld.yaml'
2323

24+
# Automatically cancel in-progress actions on the same branch
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
27+
cancel-in-progress: true
28+
2429
jobs:
2530
build:
2631
strategy:

.github/workflows/library-hugo0.122.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-hugo0.122.yaml'
2525
- '!library/hugo/0.122/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-imaginary1.2.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/imaginary1.2
1+
name: library/imaginary:1.2
22

33
on:
44
schedule:
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-imaginary1.2.yaml'
2020
- '!library/imaginary/1.2/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-java17.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-java17.yaml'
2020
- '!library/java/17/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-lua5.4.4.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/lua5.4.4
1+
name: library/lua:5.4.4
22

33
on:
44
repository_dispatch:
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-lua5.4.4.yaml'
2525
- '!library/lua/5.4.4/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-lua5.4.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
- 'library/lua/5.4/**'
2323
- '.github/workflows/library-lua5.4.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-mariadb11.2.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-mariadb11.2.yaml'
2020
- '!library/mariadb/11.2/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-memcached1.6.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-memcached1.6.yaml'
2525
- '!library/memcached/1.6/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-mongo6.0.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- '.github/workflows/library-mongo6.0.yaml'
2020
- '!library/mongo/6.0/README.md'
2121

22+
# Automatically cancel in-progress actions on the same branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
strategy:

.github/workflows/library-nginx1.15.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
- 'library/nginx/1.15/**'
2323
- '.github/workflows/library-nginx1.15.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-nginx1.25.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/nginx1.25
1+
name: library/nginx:1.25
22

33
on:
44
repository_dispatch:
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-nginx1.25.yaml'
2525
- '!library/nginx/1.25/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-node18.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-node18.yaml'
2525
- '!library/node/18/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-node20.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
- '.github/workflows/library-node20.yaml'
2323
- '!library/node/20/README.md'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-node21.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-node21.yaml'
2525
- '!library/node/21/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-perl5.38.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/perl5.38
1+
name: library/perl:5.38
22

33
on:
44
repository_dispatch:
@@ -24,6 +24,11 @@ on:
2424
- '.github/workflows/library-perl5.38.yaml'
2525
- '!library/perl/5.38/README.md'
2626

27+
# Automatically cancel in-progress actions on the same branch
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
30+
cancel-in-progress: true
31+
2732
jobs:
2833
build:
2934
strategy:

.github/workflows/library-php8.2.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/php8.2
1+
name: library/php:8.2
22

33
on:
44
repository_dispatch:
@@ -22,6 +22,11 @@ on:
2222
- 'library/php/8.2/**'
2323
- '.github/workflows/library-php8.2.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-python3.10.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
- 'library/python/3.10/**'
2323
- '.github/workflows/library-python3.10.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-python3.12.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: library/python3.12
1+
name: library/python:3.12
22

33
on:
44
repository_dispatch:
@@ -22,6 +22,11 @@ on:
2222
- 'library/python/3.12/**'
2323
- '.github/workflows/library-python3.12.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

.github/workflows/library-redis7.0.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
- 'library/redis/7.0/**'
2323
- '.github/workflows/library-redis7.0.yaml'
2424

25+
# Automatically cancel in-progress actions on the same branch
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
28+
cancel-in-progress: true
29+
2530
jobs:
2631
build:
2732
strategy:

0 commit comments

Comments
 (0)