Skip to content

Commit f0cf091

Browse files
committed
feat(ci): Upload to S3 production storage as well
This is needed for testing with Axiom. Signed-off-by: Loïc Minier <[email protected]>
1 parent d504ecc commit f0cf091

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/debos.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,22 @@ jobs:
143143
disk-sdcard.img2 \
144144
flash_qrb2210-*
145145
146-
- name: Upload private artifacts
146+
# upload to a cloud storage space accessible by LAVA and developers
147+
- name: Upload private artifacts (GCP)
147148
uses: qualcomm-linux/upload-private-artifact-action@v1
148-
id: upload_artifacts
149+
id: upload_artifacts_gcp
149150
with:
150151
path: debos-artifacts
151152

153+
# upload to a cloud storage space accessible by Axiom
154+
- name: Upload private artifacts (S3)
155+
uses: qualcomm-linux/upload-private-artifact-action@aws-v1
156+
with:
157+
s3_bucket: qcom-prd-gh-artifacts
158+
# should be the default in that action, or ought to reuse BUILD_ID
159+
destination: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.run_id }}-${{ github.run_attempt }}/
160+
path: debos-artifacts
161+
152162
- name: Unpack rootfs to generate SBOM
153163
run: mkdir -v rootfs && tar -C rootfs -xf rootfs.tar.gz
154164

@@ -199,7 +209,7 @@ jobs:
199209
path: sboms
200210
- name: "Print output"
201211
env:
202-
build_url: ${{ steps.upload_artifacts.outputs.url }}
212+
build_url: ${{ steps.upload_artifacts_gcp.outputs.url }}
203213
run: |
204214
echo "Downloads URL: ${build_url}"
205215
echo "url=\"${build_url}\"" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)