1717 name : Build Release
1818 runs-on : oracle-16cpu-64gb-x86-64
1919 needs : get-dev-image
20+ permissions :
21+ contents : read
22+ packages : write
2023 container :
2124 image : ${{ needs.get-dev-image.outputs.image-with-tag }}
2225 env :
@@ -42,38 +45,36 @@ jobs:
4245 BUILDBOT_GPG_KEY_B64 : ${{ secrets.BUILDBOT_GPG_KEY_B64 }}
4346 run : |
4447 echo "${BUILDBOT_GPG_KEY_B64}" | base64 --decode | gpg --no-tty --batch --import
45- - id : gcloud-creds
46- uses : ./.github/actions/gcloud_creds
48+ - name : Login to GHCR
49+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
4750 with :
48- SERVICE_ACCOUNT_KEY : ${{ secrets.GH_RELEASE_SA_PEM_B64 }}
51+ registry : ghcr.io
52+ username : ${{ github.actor }}
53+ password : ${{ github.token }}
4954 - name : Build & Push Artifacts
5055 env :
5156 REF : ${{ github.event.ref }}
5257 BUILDBOT_GPG_KEY_ID : ${{ secrets.BUILDBOT_GPG_KEY_ID }}
5358 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5459 BUILD_NUMBER : ${{ github.run_attempt }}
5560 JOB_NAME : ${{ github.job }}
56- GOOGLE_APPLICATION_CREDENTIALS : ${{ steps.gcloud-creds.outputs.gcloud-creds }}
5761 GH_REPO : ${{ github.repository }}
62+ IMAGE_REPO : ${{ vars.IMAGE_REPO || 'ghcr.io/pixie-io' }}
5863 shell : bash
5964 run : |
6065 export TAG_NAME="${REF#*/tags/}"
6166 mkdir -p "artifacts/"
6267 export ARTIFACTS_DIR="$(realpath artifacts/)"
6368 ./ci/save_version_info.sh
6469 ./ci/cli_build_release.sh
70+ # Despite the name, linux-artifacts also contains the unsigned darwin
71+ # binaries (cli_darwin_{amd64,arm64}_unsigned). sign-release downloads
72+ # this artifact to feed cli_merge_sign.sh.
6573 - name : Upload Github Artifacts
6674 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6775 with :
6876 name : linux-artifacts
6977 path : artifacts/
70- - name : Update GCS Manifest
71- env :
72- ARTIFACT_MANIFEST_BUCKET : " pixie-dev-public"
73- # Use the old style versions file instead of the new updates for the gcs manifest.
74- MANIFEST_UPDATES : " "
75- GOOGLE_APPLICATION_CREDENTIALS : ${{ steps.gcloud-creds.outputs.gcloud-creds }}
76- run : ./ci/update_artifact_manifest.sh
7778 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7879 with :
7980 name : artifact-upload-log
8889 fetch-depth : 0
8990 - name : Add pwd to git safe dir
9091 run : git config --global --add safe.directory `pwd`
92+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
93+ with :
94+ name : linux-artifacts
95+ path : artifacts/
9196 - name : Install gon
9297 run : brew install Bearer/tap/gon
9398 - name : Sign CLI release
@@ -102,7 +107,6 @@ jobs:
102107 export CERT_PATH="pixie.cert"
103108 echo -n "$CERT_BASE64" | base64 --decode -o "$CERT_PATH"
104109 export TAG_NAME="${REF#*/tags/}"
105- mkdir -p "artifacts/"
106110 export ARTIFACTS_DIR="$(pwd)/artifacts"
107111 ./ci/cli_merge_sign.sh
108112 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -132,19 +136,15 @@ jobs:
132136 BUILDBOT_GPG_KEY_B64 : ${{ secrets.BUILDBOT_GPG_KEY_B64 }}
133137 run : |
134138 echo "${BUILDBOT_GPG_KEY_B64}" | base64 --decode | gpg --no-tty --batch --import
135- - id : gcloud-creds
136- uses : ./.github/actions/gcloud_creds
137- with :
138- SERVICE_ACCOUNT_KEY : ${{ secrets.GH_RELEASE_SA_PEM_B64 }}
139139 - name : Add pwd to git safe dir
140140 run : |
141141 git config --global --add safe.directory `pwd`
142142 - name : Upload signed CLI
143143 env :
144144 REF : ${{ github.event.ref }}
145145 BUILDBOT_GPG_KEY_ID : ${{ secrets.BUILDBOT_GPG_KEY_ID }}
146- GOOGLE_APPLICATION_CREDENTIALS : ${{ steps.gcloud-creds.outputs.gcloud-creds }}
147146 ARTIFACT_UPLOAD_LOG : " artifact_uploads.json"
147+ GH_REPO : ${{ github.repository }}
148148 shell : bash
149149 run : |
150150 export TAG_NAME="${REF#*/tags/}"
0 commit comments