Skip to content

Commit

Permalink
[#748] adding a single yaml for installing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
howardgao authored and gaohoward committed Dec 25, 2023
1 parent 06a614c commit 1b2280d
Show file tree
Hide file tree
Showing 3 changed files with 5,160 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
-d "$(jq -c -n --arg tag_name "${RELEASE_TAG}" '{"tag_name":$tag_name,"generate_release_notes":true}')" | jq -r '.id')
RELEASE_PACKAGE="activemq-artemis-operator-${RELEASE_TAG}"
INSTALL_YAML="activemq-artemis-operator.yaml"
rm -rf /tmp/${RELEASE_PACKAGE}
mkdir -p /tmp/${RELEASE_PACKAGE}
cp -r deploy/* /tmp/${RELEASE_PACKAGE}
Expand All @@ -120,3 +121,6 @@ jobs:
curl -v -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.BOT_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" -H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets?name=${RELEASE_PACKAGE}.zip" --data-binary "@/tmp/${RELEASE_PACKAGE}.zip"
curl -v -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.BOT_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" -H "Content-Type: text/plain" \
"https://uploads.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets?name=${INSTALL_YAML}" --data "@/tmp/${RELEASE_PACKAGE}/${INSTALL_YAML}"
Loading

0 comments on commit 1b2280d

Please sign in to comment.