Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a44aef5381 | |||
| 4a278b1419 | |||
| 698c977511 |
Vendored
+11
-8
@@ -1,5 +1,5 @@
|
||||
# FleetDM Stack - Gitea Actions
|
||||
# CI: lint on every push
|
||||
# CI: lint on every push (skips docs-only changes)
|
||||
# Semantic Release: auto-bump version on push to main/master
|
||||
# - merge from feature/* branch → major bump
|
||||
# - any other commit (fix, chore, etc.) → patch bump
|
||||
@@ -12,6 +12,14 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'README.md'
|
||||
- 'STATUS.md'
|
||||
- 'AGENTS.md'
|
||||
- 'TASKS.md'
|
||||
- '.gitignore'
|
||||
- 'djinni-*/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
@@ -24,7 +32,7 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone --depth=1 https://git.produktor.io/${{ gitea.repository }}.git .
|
||||
git clone --depth=1 https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git .
|
||||
git checkout ${{ gitea.sha }}
|
||||
|
||||
- name: Install Helm
|
||||
@@ -48,7 +56,7 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout (full history for tags)
|
||||
run: |
|
||||
git clone https://git.produktor.io/${{ gitea.repository }}.git .
|
||||
git clone https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git .
|
||||
git fetch --tags
|
||||
|
||||
- name: Determine version bump
|
||||
@@ -60,13 +68,11 @@ jobs:
|
||||
fi
|
||||
echo "Latest tag: $LATEST_TAG"
|
||||
|
||||
# Strip 'v' prefix and split
|
||||
VER="${LATEST_TAG#v}"
|
||||
MAJOR=$(echo "$VER" | cut -d. -f1)
|
||||
MINOR=$(echo "$VER" | cut -d. -f2)
|
||||
PATCH=$(echo "$VER" | cut -d. -f3)
|
||||
|
||||
# Check if this commit is a merge from a feature/* branch
|
||||
COMMIT_MSG=$(git log -1 --format='%s' ${{ gitea.sha }})
|
||||
echo "Commit message: $COMMIT_MSG"
|
||||
|
||||
@@ -74,7 +80,6 @@ jobs:
|
||||
if echo "$COMMIT_MSG" | grep -qiE "^Merge.*feature/"; then
|
||||
IS_FEATURE="true"
|
||||
fi
|
||||
# Also check parent branches for merge commits
|
||||
if git log -1 --format='%P' ${{ gitea.sha }} | grep -q ' '; then
|
||||
MERGE_BRANCH=$(git log -1 --format='%s' ${{ gitea.sha }} | grep -oE "feature/[^ '\"]*" || true)
|
||||
if [ -n "$MERGE_BRANCH" ]; then
|
||||
@@ -130,7 +135,6 @@ jobs:
|
||||
API="https://git.produktor.io/api/v1/repos/${{ gitea.repository }}/releases"
|
||||
TOKEN="${{ gitea.token }}"
|
||||
|
||||
# Create release
|
||||
RELEASE=$(curl -sf -X POST "$API" \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
@@ -138,7 +142,6 @@ jobs:
|
||||
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" \
|
||||
|
||||
Reference in New Issue
Block a user