Skip to content

Commit 5a572a4

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 51312c6 commit 5a572a4

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
@@ -144,12 +144,22 @@ jobs:
144144
disk-sdcard.img2 \
145145
flash_qrb2210-*
146146
147-
- name: Upload private artifacts
147+
# upload to a cloud storage space accessible by LAVA and developers
148+
- name: Upload private artifacts (GCP)
148149
uses: qualcomm-linux/upload-private-artifact-action@v1
149-
id: upload_artifacts
150+
id: upload_artifacts_gcp
150151
with:
151152
path: debos-artifacts
152153

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

@@ -200,7 +210,7 @@ jobs:
200210
path: sboms
201211
- name: "Print output"
202212
env:
203-
build_url: ${{ steps.upload_artifacts.outputs.url }}
213+
build_url: ${{ steps.upload_artifacts_gcp.outputs.url }}
204214
run: |
205215
echo "Downloads URL: ${build_url}"
206216
echo "url=\"${build_url}\"" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)