From fc1e9f61a5f06cdd76cd2f8f80510ea90171f9b5 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Sun, 10 Nov 2024 18:39:43 +0100 Subject: [PATCH] ci: move git-sv config to the right dir and tune workflow abit --- .forgejo/git-sv.yaml | 39 ------------------------- .forgejo/workflows/release.yaml | 27 ++--------------- .gitsv/config.yaml | 51 +++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 64 deletions(-) delete mode 100644 .forgejo/git-sv.yaml create mode 100644 .gitsv/config.yaml diff --git a/.forgejo/git-sv.yaml b/.forgejo/git-sv.yaml deleted file mode 100644 index 2e03598..0000000 --- a/.forgejo/git-sv.yaml +++ /dev/null @@ -1,39 +0,0 @@ -log-level: "" -versioning: - update-major: [] - update-minor: [feat] - update-patch: [build, ci, chore, docs, fix, perf, refactor, style, test] - ignore-unknown: false -tag: - pattern: '%d.%d.%d' - filter: "" -release-notes: - sections: - - name: Features - section-type: commits - commit-types: [feat] - - name: Bug Fixes - section-type: commits - commit-types: [fix] - - name: Breaking Changes - section-type: breaking-changes -branches: - prefix: ([a-z]+\/)? - suffix: (-.*)? - disable-issue: false - skip: [master, main, developer] - skip-detached: false -commit-message: - types: [build, ci, chore, docs, feat, fix, perf, refactor, revert, style, test] - header-selector: "" - scope: - values: [] - footer: - issue: - key: jira - key-synonyms: [Jira, JIRA] - use-hash: false - add-value-prefix: "" - issue: - regex: '[A-Z]+-[0-9]+' - diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index b21a79a..00e70b2 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -28,29 +28,6 @@ jobs: context: /workspace/${{ github.repository }} credentials: | code.252.no=${{ github.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} - destinations: "code.252.no/tommy/mbpfan:${{ steps.next-version.outputs.next-version }}" + destinations: "code.252.no/tommy/mbpfan:${{ + steps.next-version.outputs.next-version }}" push: 'true' - - - # - name: Set up QEMU - # uses: docker/setup-qemu-action@v3 - - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v3 - - # - name: Login to GitHub Container Registry - # uses: docker/login-action@v3 - # with: - # registry: ghcr.io - # username: ${{ github.actor }} - # password: ${{ secrets.GITHUB_TOKEN }} - - # - name: Build and Push - # uses: docker/build-push-action@v5 - # with: - # context: . - # file: ./Dockerfile - # platforms: linux/amd64 - # push: true - # tags: ${{ steps.meta.outputs.tags }} - # labels: ${{ steps.meta.outputs.labels }} diff --git a/.gitsv/config.yaml b/.gitsv/config.yaml new file mode 100644 index 0000000..f0a49bf --- /dev/null +++ b/.gitsv/config.yaml @@ -0,0 +1,51 @@ +log-level: "" +versioning: + update-major: [] + update-minor: [ feat ] + update-patch: [ build, ci, chore, docs, fix, perf, refactor, style, test ] + ignore-unknown: false +tag: + pattern: 'v%d.%d.%d' + filter: "" +release-notes: + sections: + - name: Features + section-type: commits + commit-types: [ feat ] + - name: Bug Fixes + section-type: commits + commit-types: [ fix ] + - name: Breaking Changes + section-type: breaking-changes +branches: + prefix: ([a-z]+\/)? + suffix: (-.*)? + disable-issue: false + skip: [ master, main, developer ] + skip-detached: false +commit-message: + types: + [ + build, + ci, + chore, + docs, + feat, + fix, + perf, + refactor, + revert, + style, + test + ] + header-selector: "" + scope: + values: [] + footer: + issue: + key: jira + key-synonyms: [ Jira, JIRA ] + use-hash: false + add-value-prefix: "" + issue: + regex: '[A-Z]+-[0-9]+'