Skip to content

Commit f65b5e8

Browse files
authored
Merge pull request #313 from lool/s3-upload-fixes
S3 upload fixes
2 parents 95081ca + 308016f commit f65b5e8

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.github/workflows/build-overlay-deb.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,7 @@ jobs:
9595
uses: qualcomm-linux/upload-private-artifact-action@aws-v4
9696
with:
9797
path: upload
98+
# these should be the defaults; or ought to reuse BUILD_ID
99+
s3_bucket: qcom-prd-gh-artifacts
100+
destination: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.run_id }}-${{ github.run_attempt }}/
98101

.github/workflows/debos.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ jobs:
178178
uses: qualcomm-linux/upload-private-artifact-action@aws-v4
179179
id: upload_artifacts_s3
180180
with:
181+
path: debos-artifacts
182+
# these should be the defaults; or ought to reuse BUILD_ID
181183
s3_bucket: qcom-prd-gh-artifacts
182-
# should be the default in that action, or ought to reuse BUILD_ID
183184
destination: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.run_id }}-${{ github.run_attempt }}/
184-
path: debos-artifacts
185185

186186
- name: Unpack rootfs to generate SBOM
187187
run: mkdir -v rootfs && tar -C rootfs -xf rootfs.tar
@@ -227,10 +227,14 @@ jobs:
227227
cp -av rootfs-sbom.*.gz sboms
228228
229229
- name: Upload SBOMs as private artifacts
230-
uses: qualcomm-linux/upload-private-artifact-action@v1
230+
uses: qualcomm-linux/upload-private-artifact-action@aws-v4
231231
id: upload_sbom_artifacts
232232
with:
233233
path: sboms
234+
# these should be the defaults; or ought to reuse BUILD_ID
235+
s3_bucket: qcom-prd-gh-artifacts
236+
destination: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.run_id }}-${{ github.run_attempt }}/
237+
234238
- name: "Print output"
235239
env:
236240
build_url: ${{ steps.upload_artifacts_s3.outputs.url }}

.github/workflows/linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ permissions:
5252
pull-requests: write # lava-test.yml
5353

5454
env:
55-
# where results will be posted/hosted
56-
FILESERVER_URL: https://quic-yocto-fileserver-1029608027416.us-central1.run.app
5755
# github runs are only unique per repository and may also be re-run; create a
5856
# build id for the current run
5957
BUILD_ID: ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}
@@ -135,6 +133,9 @@ jobs:
135133
id: upload_artifacts
136134
with:
137135
path: artifacts
136+
# these should be the defaults; or ought to reuse BUILD_ID
137+
s3_bucket: qcom-prd-gh-artifacts
138+
destination: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.run_id }}-${{ github.run_attempt }}/
138139

139140
debos-linux-deb:
140141
needs: build-linux-deb

.github/workflows/u-boot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ permissions:
1212
contents: read # actions/checkout
1313

1414
env:
15-
# where results will be posted/hosted
16-
FILESERVER_URL: https://quic-yocto-fileserver-1029608027416.us-central1.run.app
1715
# github runs are only unique per repository and may also be re-run; create a
1816
# build id for the current run
1917
BUILD_ID: ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}
@@ -95,4 +93,7 @@ jobs:
9593
id: upload_artifacts
9694
with:
9795
path: artifacts
96+
# these should be the defaults; or ought to reuse BUILD_ID
97+
s3_bucket: qcom-prd-gh-artifacts
98+
destination: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.run_id }}-${{ github.run_attempt }}/
9899

0 commit comments

Comments
 (0)