Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit b96700e

Browse files
committed
removes upstream version from build-nix-image and full-nix
1 parent 560ce5c commit b96700e

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/build-nix-image.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ on:
5555
required: false
5656
type: string
5757
default: ''
58-
upstream-version:
59-
description: 'Upstream version passed to devguard-scanner generate-tag (matches the nix package version segment, e.g. 0)'
58+
runner:
59+
description: 'GitHub Actions runner label to use (e.g. ubuntu-latest, ubuntu-24.04-arm)'
6060
required: false
6161
type: string
62-
default: '0'
62+
default: 'ubuntu-latest'
6363
secrets:
6464
devguard-token:
6565
required: false
@@ -82,7 +82,7 @@ on:
8282

8383
jobs:
8484
build:
85-
runs-on: ubuntu-latest
85+
runs-on: ${{ inputs.runner }}
8686
outputs:
8787
image-tag: ${{ steps.set-image-tag.outputs.image_tag }}
8888
image-digest: ${{ steps.get-digest.outputs.digest }}
@@ -154,7 +154,6 @@ jobs:
154154
devguard-scanner generate-tag
155155
--imagePath='${{ inputs.image-name }}'
156156
--ref='${{ github.ref_name }}'
157-
--upstreamVersion='${{ inputs.upstream-version }}'
158157
--architecture='${{ inputs.arch }}'
159158
>> image-tag-env.txt
160159
IMAGE_TAG=$(grep '^IMAGE_TAG=' image-tag-env.txt | cut -d= -f2-)

.github/workflows/full-nix.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ on:
1515
description: 'Full OCI image name without tag (e.g. ghcr.io/l3montree-dev/devguard)'
1616
required: true
1717
type: string
18-
upstream-version:
19-
description: 'Upstream version segment used by generate-tag (matches the nix package version, e.g. 0)'
20-
required: false
21-
type: string
22-
default: '0'
2318
artifact-name-suffix:
2419
description: 'Suffix appended to artifact names to avoid conflicts when building multiple images in the same workflow'
2520
required: false
@@ -54,6 +49,16 @@ on:
5449
required: false
5550
type: boolean
5651
default: true
52+
runner-amd64:
53+
description: 'GitHub Actions runner label for the amd64 build'
54+
required: false
55+
type: string
56+
default: 'ubuntu-latest'
57+
runner-arm64:
58+
description: 'GitHub Actions runner label for the arm64 build'
59+
required: false
60+
type: string
61+
default: 'ubuntu-24.04-arm'
5762
nix-cache-substituter:
5863
description: 'Nix binary cache substituter URL'
5964
required: false
@@ -109,7 +114,7 @@ jobs:
109114
asset-name: ${{ inputs.asset-name }}
110115
api-url: ${{ inputs.api-url }}
111116
arch: amd64
112-
upstream-version: ${{ inputs.upstream-version }}
117+
runner: ${{ inputs.runner-amd64 }}
113118
nix-cache-substituter: ${{ inputs.nix-cache-substituter }}
114119
nix-cache-public-key: ${{ inputs.nix-cache-public-key }}
115120
nix-cache-s3-endpoint: ${{ inputs.nix-cache-s3-endpoint }}
@@ -132,7 +137,7 @@ jobs:
132137
asset-name: ${{ inputs.asset-name }}
133138
api-url: ${{ inputs.api-url }}
134139
arch: arm64
135-
upstream-version: ${{ inputs.upstream-version }}
140+
runner: ${{ inputs.runner-arm64 }}
136141
nix-cache-substituter: ${{ inputs.nix-cache-substituter }}
137142
nix-cache-public-key: ${{ inputs.nix-cache-public-key }}
138143
nix-cache-s3-endpoint: ${{ inputs.nix-cache-s3-endpoint }}

0 commit comments

Comments
 (0)