commit 40d908cfa05a65204544ec0cb9692cc3efc89564 Author: lucasdpt Date: Wed Sep 24 22:25:05 2025 +0200 feat: init commit diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..90ed717 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,27 @@ +name: Release + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + semantic-release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/git + + - name: Semantic Release + run: npx semantic-release \ No newline at end of file diff --git a/.gitea/workflows/tag.yaml b/.gitea/workflows/tag.yaml new file mode 100644 index 0000000..8578fca --- /dev/null +++ b/.gitea/workflows/tag.yaml @@ -0,0 +1,30 @@ +name: Release Docker Image + +on: + push: + tags: + - '*.*.*' + +jobs: + build-and-push: + runs-on: docker + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: git.tools.ldpt.fr + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: git.tools.ldpt.fr/actions/helm-ci-image:${{ github.ref_name }} diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..d652d79 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,19 @@ +{ + "branches": [ + { + "name": "main" + } + ], + "tagFormat": "${version}", + "plugins": [ + ["@semantic-release/commit-analyzer"], + ["@semantic-release/release-notes-generator"], + ["@semantic-release/changelog", { + "changelogFile": "CHANGELOG.md" + }], + ["@semantic-release/git", { + "assets": ["CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + }] + ] +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e9d3e1c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine/helm:3.19.0 +RUN apk add --no-cache nodejs npm git bash curl ca-certificates \ + && update-ca-certificates \ No newline at end of file