Skip to content

Commit 5e6d06b

Browse files
Fix when artifacts are uploaded and downloaded
Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 84019c0 commit 5e6d06b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-all-matrix.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
env:
9797
DOCKER_ARCH: "${{ matrix.docker_arch }}"
9898
DO_PUSH: "${{ github.ref == 'refs/heads/main' && 'yes' || 'no' }}"
99-
EXPORT_LK_CONTAINERS: "${{ github.event_name == 'pull_request' && 'yes' || 'no' }}" # Builds on PRs don't push images to a registry so they need to be passed on through GitHub Artifacts.
99+
EXPORT_LK_CONTAINERS: "${{ github.ref != 'refs/heads/main' && 'yes' || 'no' }}" # Builds on PRs don't push images to a registry so they need to be passed on through GitHub Artifacts.
100100
EXPORT_LK_CONTAINERS_DIR: "${{ runner.temp }}"
101101
run: bash build.sh linuxkit-containers
102102

@@ -141,7 +141,7 @@ jobs:
141141
- name: Build and Push and Export Kernel ${{matrix.kernel}} (${{ matrix.arch }})
142142
env:
143143
DO_PUSH: "${{ github.ref == 'refs/heads/main' && 'yes' || 'no' }}"
144-
EXPORT_KERNEL_IMAGE: "${{ github.event_name == 'pull_request' && 'yes' || 'no' }}" # Builds on PRs don't push images to a registry so they need to be passed on through GitHub Artifacts.
144+
EXPORT_KERNEL_IMAGE: "${{ github.ref != 'refs/heads/main' && 'yes' || 'no' }}" # Builds on PRs don't push images to a registry so they need to be passed on through GitHub Artifacts.
145145
EXPORT_KERNEL_IMAGE_DIR: "${{ runner.temp }}"
146146
run: bash build.sh build-kernel "${{ matrix.kernel }}"
147147

@@ -201,13 +201,13 @@ jobs:
201201

202202
- name: Download Linuxkit artifacts
203203
uses: actions/download-artifact@v5
204-
if: ${{ github.event_name == 'pull_request' }}
204+
if: ${{ github.ref != 'refs/heads/main' }}
205205
with:
206206
name: linuxkit-images-${{ matrix.docker_arch }}
207207
path: ${{ runner.temp }}
208208

209209
- name: Load Linuxkit Docker images into local Docker daemon
210-
if: ${{ github.event_name == 'pull_request' }}
210+
if: ${{ github.ref != 'refs/heads/main' }}
211211
run: |
212212
ls "${{ runner.temp }}"
213213
imgs=$(ls "${{ runner.temp }}" | grep tar.gz | xargs)
@@ -221,13 +221,13 @@ jobs:
221221
222222
- name: Download Kernel artifacts
223223
uses: actions/download-artifact@v5
224-
if: ${{ github.event_name == 'pull_request' }}
224+
if: ${{ github.ref != 'refs/heads/main' }}
225225
with:
226226
name: kernel-images-${{ matrix.kernel }}
227227
path: ${{ runner.temp }}
228228

229229
- name: Load Kernel Docker images into local Docker daemon
230-
if: ${{ github.event_name == 'pull_request' }}
230+
if: ${{ github.ref != 'refs/heads/main' }}
231231
run: |
232232
ls "${{ runner.temp }}"
233233
imgs=$(ls "${{ runner.temp }}" | grep tar.gz | xargs)

0 commit comments

Comments
 (0)