|
11 | 11 | # permissions to none |
12 | 12 | permissions: |
13 | 13 | contents: read |
| 14 | + security-events: read # This is required to handle authentication to our artifact publishing API |
14 | 15 |
|
15 | 16 | env: |
16 | 17 | # where results will be posted/hosted |
|
33 | 34 | container: |
34 | 35 | image: debian:trixie |
35 | 36 | volumes: |
36 | | - - /srv/gh-runners/quic-yocto/builds:/fileserver-builds |
37 | 37 | - /srv/gh-runners/quic-yocto/downloads:/fileserver-downloads |
38 | 38 | steps: |
39 | 39 | - uses: actions/checkout@v4 |
@@ -64,19 +64,19 @@ jobs: |
64 | 64 | scripts/build-linux-deb.sh kernel-configs/systemd-boot.config |
65 | 65 |
|
66 | 66 | - name: Upload results to fileserver |
| 67 | + env: |
| 68 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
67 | 69 | run: | |
68 | 70 | set -ux |
69 | 71 | # dcmd from devscripts will be used to parse .changes file |
70 | 72 | 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 |
| 73 | + # python3-requests is used by publish_aritfacts.py |
| 74 | + apt -y install python3-requests |
74 | 75 | # 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 |
| 76 | + export BUILD_DIR="/fileserver-downloads/${BUILD_ID}" |
| 77 | + mkdir -vp "${BUILD_DIR}" |
| 78 | + cp -av `dcmd *.changes` "${BUILD_DIR}" |
| 79 | +
|
80 | 80 | # create or update linux-deb-latest symlink |
81 | 81 | mkdir -vp /fileserver-downloads/qcom-deb-images |
82 | 82 | ( |
|
90 | 90 | # perhaps help NFS sync |
91 | 91 | sync |
92 | 92 | # instruct fileserver to publish this directory |
93 | | - url="${FILESERVER_URL}/${BUILD_ID}/" |
94 | | - curl -X POST -H 'Accept: text/event-stream' "${url}" |
| 93 | + export URL="${FILESERVER_URL}/${BUILD_ID}/" |
| 94 | + .github/workflows/publish_artifacts.py |
| 95 | + echo Image available at: ${URL} |
95 | 96 |
|
0 commit comments