Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(workflows): Various fixes and changes #130

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
7 changes: 4 additions & 3 deletions .github/actions/merge-oci-digests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
using: composite
steps:
- name: Retrieve OCI digests
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still we should use v4 everywhere and adapt if necessary

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only this comment from my side, we can merge after

with:
path: ${{ github.workspace }}/.kraftkit/downloads

Expand All @@ -31,9 +31,10 @@ runs:
KRAFTKIT_RUNTIME_DIR: ${{ github.workspace }}/.kraftkit/runtime
KRAFTKIT_LOG_LEVEL: debug
KRAFTKIT_LOG_TYPE: basic
KRAFTKIT_NO_CHECK_UPDATES: true
run: |
STAGING_RELEASE=$(curl https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name');
wget https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb;
STAGING_RELEASE=$(curl -sS https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name');
wget -nv https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb;
sudo dpkg -i kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb;
kraft pkg ls --apps --all;
kraft pkg push ${{ inputs.name }};
5 changes: 5 additions & 0 deletions .github/workflows/library-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
- 'library/base/**'
- '.github/workflows/library-base.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/library-bun1.1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/bun1.1
name: library/bun:1.1

on:
schedule:
Expand All @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-bun1.1.yaml'
- '!library/bun/1.1/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand All @@ -39,7 +44,7 @@ jobs:
uses: unikraft/kraftkit@staging
with:
loglevel: debug
workdir: library/bun1.1
workdir: library/bun/1.1
runtimedir: /github/workspace/.kraftkit
plat: ${{ matrix.plat }}
arch: ${{ matrix.arch }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-caddy2.7.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/caddy2.7
name: library/caddy:2.7

on:
repository_dispatch:
Expand All @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-caddy2.7.yaml'
- '!library/caddy/2.7/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-dragonfly1.14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-dragonfly1.14.yaml'
- '!library/dragonfly/1.14/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-findtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-findtime.yaml'
- '!library/findtime/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-grafana10.2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/grafana10.2
name: library/grafana:10.2

on:
schedule:
Expand All @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-grafana10.2.yaml'
- '!library/grafana/10.2/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-haproxy2.8.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/haproxy2.8
name: library/haproxy:2.8

on:
schedule:
Expand All @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-haproxy2.8.yaml'
- '!library/haproxy/2.8/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-helloworld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
- 'library/helloworld/**'
- '.github/workflows/library-helloworld.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-hugo0.122.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-hugo0.122.yaml'
- '!library/hugo/0.122/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-imaginary1.2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/imaginary1.2
name: library/imaginary:1.2

on:
schedule:
Expand All @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-imaginary1.2.yaml'
- '!library/imaginary/1.2/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-java17.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-java17.yaml'
- '!library/java/17/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-lua5.4.4.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/lua5.4.4
name: library/lua:5.4.4

on:
repository_dispatch:
Expand All @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-lua5.4.4.yaml'
- '!library/lua/5.4.4/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-lua5.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
- 'library/lua/5.4/**'
- '.github/workflows/library-lua5.4.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-mariadb11.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-mariadb11.2.yaml'
- '!library/mariadb/11.2/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-memcached1.6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-memcached1.6.yaml'
- '!library/memcached/1.6/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-mongo6.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- '.github/workflows/library-mongo6.0.yaml'
- '!library/mongo/6.0/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-nginx1.15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
- 'library/nginx/1.15/**'
- '.github/workflows/library-nginx1.15.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-nginx1.25.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/nginx1.25
name: library/nginx:1.25

on:
repository_dispatch:
Expand All @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-nginx1.25.yaml'
- '!library/nginx/1.25/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-node18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-node18.yaml'
- '!library/node/18/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-node20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
- '.github/workflows/library-node20.yaml'
- '!library/node/20/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-node21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-node21.yaml'
- '!library/node/21/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-perl5.38.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/perl5.38
name: library/perl:5.38

on:
repository_dispatch:
Expand All @@ -24,6 +24,11 @@ on:
- '.github/workflows/library-perl5.38.yaml'
- '!library/perl/5.38/README.md'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-php8.2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/php8.2
name: library/php:8.2

on:
repository_dispatch:
Expand All @@ -22,6 +22,11 @@ on:
- 'library/php/8.2/**'
- '.github/workflows/library-php8.2.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/library-python3.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
- 'library/python/3.10/**'
- '.github/workflows/library-python3.10.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/library-python3.12.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: library/python3.12
name: library/python:3.12

on:
repository_dispatch:
Expand All @@ -22,6 +22,11 @@ on:
- 'library/python/3.12/**'
- '.github/workflows/library-python3.12.yaml'

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
Loading
Loading