chore: make compiler repo a secret to easily update it as a variable

This commit is contained in:
Arthur Meyre
2022-01-04 17:25:22 +01:00
parent e522f22ce8
commit fcbf92609f
3 changed files with 9 additions and 4 deletions

View File

@@ -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}" \

View File

@@ -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}" \

View File

@@ -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}"