Skip to content

Commit c084f2b

Browse files
authored
Merge branch 'main' into ci-codspeed
Signed-off-by: Lars Eggert <lars@eggert.org>
2 parents 7aeece4 + 12c5f48 commit c084f2b

9 files changed

Lines changed: 371 additions & 78 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: 'Build QNS Docker Image'
2+
description: 'Build a Docker image for QNS testing'
3+
author: 'neqo'
4+
5+
inputs:
6+
ref:
7+
description: 'Git ref to checkout (SHA, branch, tag)'
8+
required: false
9+
default: github.ref
10+
tag:
11+
description: 'Tag for the image'
12+
required: true
13+
push:
14+
description: 'Whether to push the image to registry'
15+
required: false
16+
default: 'false'
17+
platforms:
18+
description: 'Platforms to build for'
19+
required: false
20+
default: 'linux/amd64'
21+
22+
outputs:
23+
image-id:
24+
description: 'The ID of the built Docker image'
25+
value: ${{ steps.docker_build.outputs.imageID }}
26+
artifact-name:
27+
description: 'The name of the uploaded artifact'
28+
value: ${{ steps.upload.outputs.artifact-name }}
29+
30+
runs:
31+
using: "composite"
32+
steps:
33+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34+
with:
35+
ref: ${{ inputs.ref }}
36+
persist-credentials: false
37+
38+
- uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
39+
id: meta
40+
with:
41+
images: ghcr.io/${{ github.repository }}-qns${{ inputs.tag }}
42+
tags: |
43+
# default
44+
type=schedule
45+
type=ref,event=branch
46+
type=ref,event=tag
47+
type=ref,event=pr
48+
# set latest tag for default branch
49+
type=raw,value=latest,enable={{is_default_branch}}
50+
51+
- uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
52+
id: docker_build
53+
with:
54+
push: ${{ inputs.push }}
55+
tags: ${{ steps.meta.outputs.tags }}
56+
file: qns/Dockerfile
57+
build-args: RUST_VERSION=stable
58+
platforms: ${{ inputs.platforms }}
59+
outputs: type=docker,dest=/tmp/${{ format('{0}.tar', inputs.tag) }}
60+
61+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
62+
id: upload
63+
if: ${{ inputs.push == 'false' }}
64+
with:
65+
name: ${{ format('{0} Docker image ', inputs.tag) }}
66+
path: /tmp/${{ format('{0}.tar', inputs.tag) }}

.github/workflows/bencher-archive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
with:
2525
persist-credentials: false
26-
- uses: bencherdev/bencher@v0.5.6 # zizmor: ignore[unpinned-uses]
26+
- uses: bencherdev/bencher@v0.5.7 # zizmor: ignore[unpinned-uses]
2727
- run: bencher archive --branch "$GITHUB_HEAD_REF"

.github/workflows/bencher-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
core.exportVariable("PR_BASE_SHA", prEvent.pull_request.base.sha || '');
5555
core.exportVariable("PR_NUMBER", prEvent.number || '');
5656
57-
- uses: bencherdev/bencher@v0.5.6 # zizmor: ignore[unpinned-uses]
57+
- uses: bencherdev/bencher@v0.5.7 # zizmor: ignore[unpinned-uses]
5858

5959
- name: Set env
6060
run: |

.github/workflows/qns.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
permissions:
3434
packages: write # This permission is required to push to GitHub Container Registry.
3535
steps:
36-
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
36+
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
3737
with:
3838
platforms: arm64
3939
cache-image: false
@@ -48,7 +48,7 @@ jobs:
4848
username: ${{ github.actor }}
4949
password: ${{ github.token }}
5050

51-
- uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
51+
- uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
5252
id: meta
5353
with:
5454
images: ghcr.io/${{ github.repository }}-qns
@@ -162,7 +162,7 @@ jobs:
162162
# quic-interop-runner requires Docker v28.1. GitHub's ubuntu-24.04 comes
163163
# with v28.0.4. Install newer version.
164164
- name: Set up Docker
165-
uses: docker/setup-docker-action@3fb92d6d9c634363128c8cce4bc3b2826526370a # v4.4.0
165+
uses: docker/setup-docker-action@efe9e3891a4f7307e689f2100b33a155b900a608 # v4.5.0
166166
with:
167167
version: 'v28.1.0'
168168

0 commit comments

Comments
 (0)