@cryptotaxi247 / netdata-1 / commits / 8b37925b2

Fix build CI jobs. (#14302)

Switch from OCI to Docker images for transferring containers between CI steps.

Austin S. Hemmelgarn committed Jan 20, 2023 at 08:47 UTC 8b37925b234080d31eb1912a58ecd76149bd94db
1 file changed +10 -14
.github/workflows/build.yml
+10 -14
@@ -242,7 +242,7 @@ jobs:
242 BASE=${{ matrix.distro }}
243 PRE=${{ matrix.env_prep }}
244 RMJSONC=${{ matrix.jsonc_removal }}
245 - outputs: type=oci,dest=/tmp/image.tar
245 + outputs: type=docker,dest=/tmp/image.tar
246 tags: test:${{ matrix.artifact_key }}
247 - name: Retry delay
248 if: ${{ steps.build1.outcome == 'failure' }}
@@ -260,7 +260,7 @@ jobs:
260 BASE=${{ matrix.distro }}
261 PRE=${{ matrix.env_prep }}
262 RMJSONC=${{ matrix.jsonc_removal }}
263 - outputs: type=oci,dest=/tmp/image.tar
263 + outputs: type=docker,dest=/tmp/image.tar
264 tags: test:${{ matrix.artifact_key }}
265 - name: Retry delay
266 if: ${{ steps.build1.outcome == 'failure' && steps.build2.outcome == 'failure' }}
@@ -277,7 +277,7 @@ jobs:
277 BASE=${{ matrix.distro }}
278 PRE=${{ matrix.env_prep }}
279 RMJSONC=${{ matrix.jsonc_removal }}
280 - outputs: type=oci,dest=/tmp/image.tar
280 + outputs: type=docker,dest=/tmp/image.tar
281 tags: test:${{ matrix.artifact_key }}
282 - name: Upload image artifact
283 id: upload
@@ -335,29 +335,27 @@ jobs:
335 name: ${{ matrix.artifact_key }}-test-env
336 - name: Load test environment
337 id: load
338 - run: |
339 - docker load --input image.tar | tee image-info.txt
340 - echo "image=$(cut -d ':' -f 3 image-info.txt)" >> "${GITHUB_OUTPUT}"
338 + run: docker load --input image.tar
339 - name: Regular build on ${{ matrix.distro }}
340 id: build-basic
341 run: |
344 - docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \
342 + docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
343 /bin/sh -c 'autoreconf -ivf && ./configure --disable-dependency-tracking && make -j2'
344 - name: netdata-installer on ${{ matrix.distro }}, disable cloud
345 id: build-no-cloud
346 run: |
349 - docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \
347 + docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
348 /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --disable-cloud --one-time-build'
349 - name: netdata-installer on ${{ matrix.distro }}, require cloud
350 id: build-cloud
351 run: |
354 - docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \
352 + docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
353 /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --require-cloud --one-time-build'
354 - name: netdata-installer on ${{ matrix.distro }}, require cloud, no JSON-C
355 id: build-no-jsonc
356 if: matrix.jsonc_removal != ''
357 run: |
360 - docker run --security-opt seccomp=unconfined -w /netdata sha256:${{ steps.load.outputs.image }} \
358 + docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
359 /bin/sh -c '/rmjsonc.sh && ./netdata-installer.sh --dont-wait --dont-start-it --require-cloud --one-time-build'
360 - name: Failure Notification
361 uses: rtCamp/action-slack-notify@v2
@@ -431,13 +429,11 @@ jobs:
429 name: ${{ matrix.artifact_key }}-test-env
430 - name: Load test environment
431 id: load
434 - run: |
435 - docker load --input image.tar | tee image-info.txt
436 - echo "image=$(cut -d ':' -f 3 image-info.txt)" >> "${GITHUB_OUTPUT}"
432 + run: docker load --input image.tar
433 - name: Install netdata and run the updater on ${{ matrix.distro }}
434 id: updater-check
435 run: |
440 - docker run --security-opt seccomp=unconfined -e DISABLE_TELEMETRY=1 --network host -w /netdata sha256:${{ steps.load.outputs.image }} \
436 + docker run --security-opt seccomp=unconfined -e DISABLE_TELEMETRY=1 --network host -w /netdata test:${{ matrix.artifact_key }} \
437 /netdata/.github/scripts/run-updater-check.sh
438 - name: Failure Notification
439 uses: rtCamp/action-slack-notify@v2