Skip to content

Commit 263c218

Browse files
committed
ci(pr): push oci-artifact to registry
1 parent 86662a8 commit 263c218

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/pr.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
env:
13+
DOCKER_BAKE_REGISTRY_PUSH: _common.output+=type=registry,oci-artifact=true
1314
GCS_BUCKET: images.metal-pod.io
1415
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1516

@@ -89,7 +90,7 @@ jobs:
8990
# take a look at the docs for further info on how to append targets etc.
9091
# append to target: https://docs.docker.com/reference/cli/docker/buildx/bake/#set
9192
# GitHub Actions syntax: https://github.com/marketplace/actions/docker-buildx-bake
92-
set: _common.output+=type=registry
93+
set: ${{ env.DOCKER_REGISTRY_PUSH }}
9394
env:
9495
OS_NAME: ${{ matrix.os.name }}
9596
SEMVER_MAJOR_MINOR: ${{ matrix.os.version }}
@@ -120,7 +121,7 @@ jobs:
120121
files: ./docker-bake.hcl
121122
targets: ubuntu-firewall
122123
no-cache: true
123-
set: _common.output+=type=registry
124+
set: ${{ env.DOCKER_REGISTRY_PUSH }}
124125
env:
125126
OS_NAME: firewall
126127
SEMVER_MAJOR_MINOR: 3.0-ubuntu
@@ -154,7 +155,7 @@ jobs:
154155
files: ./docker-bake.hcl
155156
targets: ubuntu-capms
156157
no-cache: true
157-
set: _common.output+=type=registry
158+
set: ${{ env.DOCKER_REGISTRY_PUSH }}
158159
env:
159160
KUBE_VERSION: 1.32.9
160161
KUBE_APT_BRANCH: v1.32
@@ -188,7 +189,7 @@ jobs:
188189
files: ./docker-bake.hcl
189190
targets: debian-nvidia
190191
no-cache: true
191-
set: _common.output+=type=registry
192+
set: ${{ env.DOCKER_REGISTRY_PUSH }}
192193
env:
193194
OS_NAME: debian-nvidia
194195
SEMVER_MAJOR_MINOR: ${{ matrix.os.version }}
@@ -253,7 +254,7 @@ jobs:
253254
files: ./docker-bake.hcl
254255
targets: almalinux
255256
no-cache: true
256-
set: _common.output+=type=registry
257+
set: ${{ env.DOCKER_REGISTRY_PUSH }}
257258
env:
258259
OS_NAME: almalinux
259260
SEMVER_MAJOR_MINOR: 9

0 commit comments

Comments
 (0)