Skip to content

Commit cedf012

Browse files
committed
fix(publish): bump checkout to v6, gate :main tag on ref, add build-args parity (LOW-3)
1 parent 03fa28a commit cedf012

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎.github/workflows/publish-image.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ${{ inputs.runs-on }}
4747
steps:
4848
- name: Check out repository
49-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5050

5151
- name: Install cosign
5252
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
images: ghcr.io/${{ github.repository }}
6969
tags: |
70-
type=raw,value=main
70+
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
7171
type=sha,prefix=sha-
7272
type=raw,value=${{ inputs.version }}
7373
type=raw,value=v${{ inputs.version }}

‎.github/workflows/publish-node-image.yaml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ on:
4242
required: false
4343
type: string
4444
default: .
45+
build-args:
46+
description: Docker build arguments (newline-separated KEY=VALUE)
47+
required: false
48+
type: string
49+
default: ""
4550

4651
permissions:
4752
contents: read
@@ -54,7 +59,7 @@ jobs:
5459
runs-on: ${{ inputs.runs-on }}
5560
steps:
5661
- name: Check out repository
57-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5863

5964
- name: Setup Node
6065
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -87,7 +92,7 @@ jobs:
8792
with:
8893
images: ghcr.io/${{ github.repository }}
8994
tags: |
90-
type=raw,value=main
95+
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
9196
type=sha,prefix=sha-
9297
type=raw,value=${{ inputs.version }}
9398
type=raw,value=v${{ inputs.version }}
@@ -102,6 +107,7 @@ jobs:
102107
platforms: ${{ inputs.platforms }}
103108
tags: ${{ steps.meta.outputs.tags }}
104109
labels: ${{ steps.meta.outputs.labels }}
110+
build-args: ${{ inputs.build-args }}
105111

106112
- name: Sign image with cosign
107113
env:

0 commit comments

Comments
 (0)