Skip to content

Commit 54a644a

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

File tree

7 files changed

+14
-128
lines changed

7 files changed

+14
-128
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 # This is required to handle authentication to our artifact publishing API
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 # This is required to handle authentication to our artifact publishing API
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 # This is required to handle authentication to our artifact publishing API
1010

1111
jobs:
1212
build-daily:

.github/workflows/debos.yml

Lines changed: 9 additions & 12 deletions
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 # This is required to handle authentication to our artifact publishing API
1515

1616
env:
1717
# github runs are only unique per repository and may also be re-run; create a
@@ -93,16 +93,11 @@ jobs:
9393
debos -t u_boot_rb1:rb1-boot.img \
9494
debos-recipes/qualcomm-linux-debian-flash.yaml
9595
96-
- name: Upload artifacts to fileserver space for builds
97-
id: upload_artifacts
98-
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
- name: Stage build artifacts for publishing
10097
run: |
10198
set -ux
102-
# python3-requests is used by publish_aritfacts.py
103-
apt -y install python3-requests
10499
# create a directory for the current run
105-
export BUILD_DIR="/tmp/${BUILD_ID}"
100+
BUILD_DIR="/tmp/${BUILD_ID}"
106101
mkdir -vp "${BUILD_DIR}"
107102
# copy output files
108103
cp -av rootfs.tar.gz "${BUILD_DIR}"
@@ -118,7 +113,9 @@ jobs:
118113
disk-sdcard.img1 \
119114
disk-sdcard.img2 \
120115
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}
116+
117+
- name: Upload artifacts
118+
uses: qualcomm-linux/upload-private-artifact-action@v1
119+
id: upload_artifacts
120+
with:
121+
path: /tmp/${BUILD_ID}

.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 # This is required to handle authentication to our artifact publishing API
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 # This is required to handle authentication to our artifact publishing API
1212

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

0 commit comments

Comments
 (0)