Skip to content

Commit dac3f7d

Browse files
committed
ci: Use publisher helper for linux.yml
Signed-off-by: Andy Doan <[email protected]>
1 parent 872fa17 commit dac3f7d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/linux.yml

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

1516
env:
1617
# where results will be posted/hosted
@@ -68,15 +69,11 @@ jobs:
6869
set -ux
6970
# dcmd from devscripts will be used to parse .changes file
7071
apt -y install --no-install-recommends devscripts
71-
# curl will be used to talk to fileserver; should be installed by
72-
# default
73-
apt -y install curl
7472
# copy to fileserver builds and downloads directories
75-
for dir in "/fileserver-builds/${BUILD_ID}" \
76-
"/fileserver-downloads/${BUILD_ID}"; do
77-
mkdir -vp "${dir}"
78-
cp -av `dcmd *.changes` "${dir}"
79-
done
73+
export BUILD_DIR="/fileserver-downloads/${BUILD_ID}"
74+
mkdir -vp "${BUILD_DIR}"
75+
cp -av `dcmd *.changes` "${BUILD_DIR}"
76+
8077
# create or update linux-deb-latest symlink
8178
mkdir -vp /fileserver-downloads/qcom-deb-images
8279
(
@@ -90,6 +87,7 @@ jobs:
9087
# perhaps help NFS sync
9188
sync
9289
# instruct fileserver to publish this directory
93-
url="${FILESERVER_URL}/${BUILD_ID}/"
94-
curl -X POST -H 'Accept: text/event-stream' "${url}"
90+
export URL="${FILESERVER_URL}/${BUILD_ID}/"
91+
.github/workflows/publish_artifacts.py
92+
echo Image available at: ${URL}
9593

0 commit comments

Comments
 (0)