Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 25d4610903 |
Vendored
+22
-10
@@ -124,14 +124,26 @@ jobs:
|
|||||||
git push https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git "${{ steps.version.outputs.new_tag }}"
|
git push https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git "${{ steps.version.outputs.new_tag }}"
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
run: |
|
||||||
with:
|
TAG="${{ steps.version.outputs.new_tag }}"
|
||||||
server_url: ${{ gitea.server_url }}
|
BUMP="${{ steps.version.outputs.bump_type }}"
|
||||||
token: ${{ gitea.token }}
|
API="https://git.produktor.io/api/v1/repos/${{ gitea.repository }}/releases"
|
||||||
tag_name: ${{ steps.version.outputs.new_tag }}
|
TOKEN="${{ gitea.token }}"
|
||||||
name: FleetDM Stack ${{ steps.version.outputs.new_tag }}
|
|
||||||
body: |
|
|
||||||
**${{ steps.version.outputs.bump_type }}** release — `${{ steps.version.outputs.new_tag }}`
|
|
||||||
|
|
||||||
Helm chart for FleetDM Server with MySQL and Redis.
|
# Create release
|
||||||
files: .tmp/*.tgz
|
RELEASE=$(curl -sf -X POST "$API" \
|
||||||
|
-H "Authorization: token $TOKEN" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "{\"tag_name\":\"$TAG\",\"name\":\"FleetDM Stack $TAG\",\"body\":\"**${BUMP}** release — \`${TAG}\`\n\nHelm chart for FleetDM Server with MySQL and Redis.\"}")
|
||||||
|
RELEASE_ID=$(echo "$RELEASE" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
|
||||||
|
echo "Created release ID: $RELEASE_ID"
|
||||||
|
|
||||||
|
# Upload chart package
|
||||||
|
for f in .tmp/*.tgz; do
|
||||||
|
FNAME=$(basename "$f")
|
||||||
|
curl -sf -X POST "$API/$RELEASE_ID/assets?name=$FNAME" \
|
||||||
|
-H "Authorization: token $TOKEN" \
|
||||||
|
-H "Content-Type: application/octet-stream" \
|
||||||
|
--data-binary "@$f"
|
||||||
|
echo "Uploaded: $FNAME"
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user