Files
flamingo-tech-test/.github/workflows/release.yaml
Andriy Oblivantsev 2ee57f0093
Helm Chart CI & Release / Lint Helm Chart (push) Successful in 10s
Helm Chart CI & Release / Release Helm Chart (push) Has been skipped
Fix CI lint: remove head pipe that causes SIGPIPE exit 141
helm template piped to head -20 exits with 141 when head closes early.
Redirect to /dev/null instead - lint result is what matters.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-19 19:43:04 +00:00

80 lines
2.1 KiB
YAML

# FleetDM Stack - Gitea Actions
# CI: lint and validate chart on every push
# Release: package and publish on tag push (v*)
# Gitea-compatible: uses gitea context and gitea-release-action
name: Helm Chart CI & Release
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
# Release when tagging (e.g. git tag v0.1.0)
tag:
- 'v*'
permissions:
contents: read
jobs:
lint:
name: Lint Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone --depth=1 https://git.produktor.io/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: Install Helm
run: |
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm version
- name: Lint chart
run: |
helm dependency update fleetdm-stack/
helm lint fleetdm-stack/
helm template fleetdm-stack fleetdm-stack/ --namespace fleetdm > /dev/null
release:
name: Release Helm Chart
runs-on: ubuntu-latest
needs: lint
if: startsWith(gitea.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- name: Checkout
run: |
git clone https://git.produktor.io/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: Install Helm
run: |
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Package chart
run: |
helm dependency update fleetdm-stack/
helm package fleetdm-stack/
mkdir -p .tmp
mv fleetdm-stack-*.tgz .tmp/
ls -la .tmp/
- name: Create Gitea Release
uses: https://gitea.com/actions/gitea-release-action@v1
with:
server_url: ${{ gitea.server_url }}
token: ${{ gitea.token }}
tag_name: ${{ gitea.ref_name }}
name: FleetDM Stack ${{ gitea.ref_name }}
body: |
Helm chart for FleetDM Server with MySQL and Redis.
files: .tmp/*.tgz