Save built packages in CI before testing them. (#12842)
This way, if the tests fail, we can fetch the artifacts manually to inspect the binaries.
Austin S. Hemmelgarn committed
May 7, 2022 at 14:54 UTC
0cbf49860b14a04a618345f7029cd2000e651f89
1 file changed
+7
-7
.github/workflows/packaging.yml
+7
-7
@@ -199,6 +199,13 @@ jobs:
199
run: |
200
docker run --security-opt seccomp=unconfined -e DISABLE_TELEMETRY=1 -e VERSION=${{ needs.version-check.outputs.version }} \
201
--platform=${{ matrix.platform }} -v "$PWD":/netdata netdata/package-builders:${{ matrix.distro }}${{ matrix.version }}
202
+ - name: Save Packages
203
+ id: artifacts
204
+ continue-on-error: true
205
+ uses: actions/upload-artifact@v3
206
+ with:
207
+ name: ${{ matrix.distro }}-${{ matrix.version }}-${{ matrix.arch }}-packages
208
+ path: ${{ github.workspace }}/artifacts/*
209
- name: Test Packages
210
id: test
211
shell: bash
@@ -207,13 +214,6 @@ jobs:
214
-e VERSION=${{ needs.version-check.outputs.version }} -e DISTRO_VERSION=${{ matrix.version }} \
215
--platform=${{ matrix.platform }} -v "$PWD":/netdata ${{ matrix.base_image }}:${{ matrix.version }} \
216
/netdata/.github/scripts/pkg-test.sh
210
- - name: Save Packages
211
- id: artifacts
212
- continue-on-error: true
213
- uses: actions/upload-artifact@v3
214
- with:
215
- name: ${{ matrix.distro }}-${{ matrix.version }}-${{ matrix.arch }}-packages
216
- path: ${{ github.workspace }}/artifacts/*
217
- name: Upload to PackageCloud
218
id: upload
219
if: github.event_name == 'workflow_dispatch'