mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
chore: make compiler repo a secret to easily update it as a variable
This commit is contained in:
@@ -109,7 +109,7 @@ jobs:
|
||||
mkdir -p pkg
|
||||
./script/actions_utils/gh_dl_release.sh \
|
||||
--token ${{ secrets.BOT_TOKEN }} \
|
||||
--org-repo zama-ai/homomorphizer \
|
||||
--org-repo ${{ secrets.COMPILER_REPO }} \
|
||||
--file "${WHEEL_SPEC}" \
|
||||
--dest-dir "pkg" \
|
||||
--github-env "${GITHUB_ENV}" \
|
||||
|
||||
2
.github/workflows/package-watcher.yaml
vendored
2
.github/workflows/package-watcher.yaml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
run: |
|
||||
./script/actions_utils/timestamp_check_compiler_package_update_container.sh \
|
||||
--compiler-release-endpoint-url \
|
||||
https://api.github.com/repos/zama-ai/homomorphizer/releases \
|
||||
https://api.github.com/repos/${{ secrets.COMPILER_REPO }}/releases \
|
||||
--env_img_url \
|
||||
https://api.github.com/orgs/zama-ai/packages/container/concrete-framework-env/versions \
|
||||
--file "${WHEEL_SPEC}" \
|
||||
|
||||
@@ -54,9 +54,14 @@ ENV_JSON=$(curl \
|
||||
LATEST_ENV_IMG_JSON=$(echo "${ENV_JSON}" | \
|
||||
jq -rc '.[] | select(.metadata.container.tags[] | contains("latest"))')
|
||||
|
||||
RELEASE_JSON=$(curl -H "Authorization: token ${TOKEN}" \
|
||||
RELEASE_JSON_PACK=$(curl -H "Authorization: token ${TOKEN}" \
|
||||
-H "Accept: application/vnd.github.v3.raw" \
|
||||
"${COMPILER_RELEASE_ENDPOINT_URL}" | jq '. | map(select(.draft == false))[0]')
|
||||
"${COMPILER_RELEASE_ENDPOINT_URL}")
|
||||
|
||||
echo "Release json pack:"
|
||||
echo "${RELEASE_JSON_PACK}"
|
||||
|
||||
RELEASE_JSON=$(echo "${RELEASE_JSON_PACK}" | jq '. | map(select(.draft == false))[0]')
|
||||
|
||||
echo "Release json:"
|
||||
echo "${RELEASE_JSON}"
|
||||
|
||||
Reference in New Issue
Block a user