File tree Expand file tree Collapse file tree 7 files changed +14
-128
lines changed Expand file tree Collapse file tree 7 files changed +14
-128
lines changed Original file line number Diff line number Diff line change 99
1010permissions :
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
1414jobs :
1515 build-daily :
Original file line number Diff line number Diff line change 55
66permissions :
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
1010jobs :
1111 build-pr :
Original file line number Diff line number Diff line change 66
77permissions :
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
1111jobs :
1212 build-daily :
Original file line number Diff line number Diff line change 1111# permissions to none
1212permissions :
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
1616env :
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}
Original file line number Diff line number Diff line change 1111# permissions to none
1212permissions :
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
1616env :
1717 # where results will be posted/hosted
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88# permissions to none
99permissions :
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
1313env :
1414 # where results will be posted/hosted
You can’t perform that action at this time.
0 commit comments