ci: link container package to repository
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 1m51s
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 1m51s
This commit is contained in:
@@ -110,6 +110,15 @@ jobs:
|
||||
docker push "$REGISTRY/$IMAGE:$IMAGE_TAG"
|
||||
docker push "$REGISTRY/$IMAGE:latest"
|
||||
|
||||
PACKAGE_OWNER="${IMAGE%%/*}"
|
||||
PACKAGE_NAME="${IMAGE#*/}"
|
||||
REPO_NAME="${GITHUB_REPOSITORY#*/}"
|
||||
curl -fsS -X POST \
|
||||
-H "Authorization: token ${REGISTRY_TOKEN}" \
|
||||
"$GITHUB_SERVER_URL/api/v1/packages/${PACKAGE_OWNER}/container/${PACKAGE_NAME}/-/link/${REPO_NAME}" \
|
||||
-o /dev/null \
|
||||
-w "Linked container package ${PACKAGE_OWNER}/${PACKAGE_NAME} to repo ${REPO_NAME}: HTTP %{http_code}\n"
|
||||
|
||||
- name: Deploy to k3s
|
||||
env:
|
||||
KUBECONFIG_B64: ${{ secrets.KUBECONFIG_B64 }}
|
||||
|
||||
Reference in New Issue
Block a user