Skip to content

Commit 8064021

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

File tree

7 files changed

+8
-134
lines changed

7 files changed

+8
-134
lines changed

.github/workflows/build-daily.yml

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

1010
permissions:
1111
contents: read
12-
security-events: read # This is required to handle authentication to our artifact publishing API
1312

1413
jobs:
1514
build-daily:

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

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

66
permissions:
77
contents: read
8-
security-events: read # This is required to handle authentication to our artifact publishing API
98

109
jobs:
1110
build-pr:

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

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

77
permissions:
88
contents: read
9-
security-events: read # This is required to handle authentication to our artifact publishing API
109

1110
jobs:
1211
build-daily:

.github/workflows/debos.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ 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
2114

2215
# cancel in progress builds for this workflow triggered by the same ref
2316
concurrency:
@@ -93,16 +86,11 @@ jobs:
9386
debos -t u_boot_rb1:rb1-boot.img \
9487
debos-recipes/qualcomm-linux-debian-flash.yaml
9588
96-
- name: Upload artifacts to fileserver space for builds
97-
id: upload_artifacts
98-
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
- name: Stage build artifacts for publishing
10090
run: |
10191
set -ux
102-
# python3-requests is used by publish_aritfacts.py
103-
apt -y install python3-requests
10492
# create a directory for the current run
105-
export BUILD_DIR="/tmp/${BUILD_ID}"
93+
BUILD_DIR="./uploads"
10694
mkdir -vp "${BUILD_DIR}"
10795
# copy output files
10896
cp -av rootfs.tar.gz "${BUILD_DIR}"
@@ -118,7 +106,9 @@ jobs:
118106
disk-sdcard.img1 \
119107
disk-sdcard.img2 \
120108
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}
109+
110+
- name: Upload private artifacts
111+
uses: qualcomm-linux/upload-private-artifact-action@v1
112+
id: upload_artifacts
113+
with:
114+
path: ./uploads

.github/workflows/linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ 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
1514

1615
env:
1716
# 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ 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
1211

1312
env:
1413
# where results will be posted/hosted

0 commit comments

Comments
 (0)