Skip to content

Commit 111fb5b

Browse files
committed
ci: Move to new artifact upload action
Signed-off-by: Andy Doan <[email protected]>
1 parent f6b4f77 commit 111fb5b

File tree

7 files changed

+14
-134
lines changed

7 files changed

+14
-134
lines changed

.github/workflows/build-daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
permissions:
1111
contents: read
12-
security-events: read # This is required to handle authentication to our artifact publishing API
12+
id-token: write # Required by upload-private-artifact-action
1313

1414
jobs:
1515
build-daily:

.github/workflows/build-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
permissions:
77
contents: read
8-
security-events: read # This is required to handle authentication to our artifact publishing API
8+
id-token: write # Required by upload-private-artifact-action
99

1010
jobs:
1111
build-pr:

.github/workflows/build-on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
permissions:
88
contents: read
9-
security-events: read # This is required to handle authentication to our artifact publishing API
9+
id-token: write # Required by upload-private-artifact-action
1010

1111
jobs:
1212
build-daily:

.github/workflows/debos.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ on:
1111
# permissions to none
1212
permissions:
1313
contents: read
14-
security-events: read # This is required to handle authentication to our artifact publishing API
15-
16-
env:
17-
# github runs are only unique per repository and may also be re-run; create a
18-
# build id for the current run
19-
BUILD_ID: ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}
20-
FILESERVER_URL: https://quic-yocto-fileserver-1029608027416.us-central1.run.app
14+
id-token: write # Required by upload-private-artifact-action
2115

2216
# cancel in progress builds for this workflow triggered by the same ref
2317
concurrency:
@@ -93,16 +87,11 @@ jobs:
9387
debos -t u_boot_rb1:rb1-boot.img \
9488
debos-recipes/qualcomm-linux-debian-flash.yaml
9589
96-
- name: Upload artifacts to fileserver space for builds
97-
id: upload_artifacts
98-
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
- name: Stage build artifacts for publishing
10091
run: |
10192
set -ux
102-
# python3-requests is used by publish_aritfacts.py
103-
apt -y install python3-requests
10493
# create a directory for the current run
105-
export BUILD_DIR="/tmp/${BUILD_ID}"
94+
BUILD_DIR="./uploads"
10695
mkdir -vp "${BUILD_DIR}"
10796
# copy output files
10897
cp -av rootfs.tar.gz "${BUILD_DIR}"
@@ -118,7 +107,9 @@ jobs:
118107
disk-sdcard.img1 \
119108
disk-sdcard.img2 \
120109
flash_rb1*
121-
# instruct fileserver to publish this directory
122-
export URL="${FILESERVER_URL}/${BUILD_ID}/"
123-
.github/workflows/publish_artifacts.py
124-
echo Image available at: ${URL}
110+
111+
- name: Upload private artifacts
112+
uses: qualcomm-linux/upload-private-artifact-action@v1
113+
id: upload_artifacts
114+
with:
115+
path: ./uploads

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
# permissions to none
1212
permissions:
1313
contents: read
14-
security-events: read # This is required to handle authentication to our artifact publishing API
14+
id-token: write # Required by upload-private-artifact-action
1515

1616
env:
1717
# where results will be posted/hosted

.github/workflows/publish_artifacts.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

.github/workflows/u-boot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
# permissions to none
99
permissions:
1010
contents: read
11-
security-events: read # This is required to handle authentication to our artifact publishing API
11+
id-token: write # Required by upload-private-artifact-action
1212

1313
env:
1414
# where results will be posted/hosted

0 commit comments

Comments
 (0)