From 3a1bf950992ec8e6972c5b8ce0455d7ffc224477 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 2 Jul 2025 00:48:31 +0930 Subject: [PATCH 1/3] chore: add test to confirm only gitea workflows run on gitea if github dir also exists ref: #4 #1 --- .gitea/.gitkeep | 0 .gitea/workflows/pull_request.yaml | 17 +++++++++++++++++ .github/workflows/pull_request.yaml | 17 +++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .gitea/.gitkeep create mode 100644 .gitea/workflows/pull_request.yaml create mode 100644 .github/workflows/pull_request.yaml diff --git a/.gitea/.gitkeep b/.gitea/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml new file mode 100644 index 0000000..400eccf --- /dev/null +++ b/.gitea/workflows/pull_request.yaml @@ -0,0 +1,17 @@ +--- + +name: Pull Requests + + +on: + pull_request: {} + +jobs: + + ci-test: + runs-on: ubuntu-latest + steps: + + - name: Test + run: | + echo "gitea"; diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..c34b802 --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,17 @@ +--- + +name: Pull Requests + + +on: + pull_request: {} + +jobs: + + ci-test: + runs-on: ubuntu-latest + steps: + + - name: Test + run: | + echo "github"; From d29ae2b0f07f9b34d6f82b5d04e14a1fe56a68bc Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 2 Jul 2025 00:50:23 +0930 Subject: [PATCH 2/3] chore: confirm gitea folder empty, does not run github jobs ref: #4 #1 --- .gitea/workflows/.gitkeep | 0 .gitea/workflows/pull_request.yaml | 17 ----------------- 2 files changed, 17 deletions(-) create mode 100644 .gitea/workflows/.gitkeep delete mode 100644 .gitea/workflows/pull_request.yaml diff --git a/.gitea/workflows/.gitkeep b/.gitea/workflows/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml deleted file mode 100644 index 400eccf..0000000 --- a/.gitea/workflows/pull_request.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- - -name: Pull Requests - - -on: - pull_request: {} - -jobs: - - ci-test: - runs-on: ubuntu-latest - steps: - - - name: Test - run: | - echo "gitea"; From c6777a94234c58ba43f10d3a379869da75c8a8c7 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 2 Jul 2025 01:01:26 +0930 Subject: [PATCH 3/3] ci(github): Add github build to GHCR ref: #4 #1 --- .cz.yaml | 21 +++++++++++++++++++++ .github/workflows/ci.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .cz.yaml create mode 100644 .github/workflows/ci.yaml diff --git a/.cz.yaml b/.cz.yaml new file mode 100644 index 0000000..3b76791 --- /dev/null +++ b/.cz.yaml @@ -0,0 +1,21 @@ +--- +commitizen: + customize: + change_type_map: + feature: Features + fix: Fixes + refactor: Refactoring + test: Tests + change_type_order: + - BREAKING CHANGE + - feat + - fix + - test + - refactor + commit_parser: ^(?Pfeat|fix|test|refactor|perf|BREAKING CHANGE)(?:\((?P[^()\r\n]*)\)|\()?(?P!)?:\s(?P.*)? + name: cz_customize + prerelease_offset: 1 + tag_format: $version + update_changelog_on_bump: false + version: 0.0.1 + version_scheme: semver diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..cbb9801 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,25 @@ +--- + +name: 'CI' + + +on: + push: + branches: + - '**' + tags: + - '*' + +jobs: + + + docker: + name: 'Docker' + uses: nofusscomputing/action_docker/.github/workflows/docker.yaml@development + with: + DOCKER_BUILD_IMAGE_NAME: "nofusscomputing/git-event-problem-matcher" + DOCKER_PUBLISH_REGISTRY: "docker.io" + DOCKER_PUBLISH_IMAGE_NAME: "nofusscomputing/git-event-problem-matcher" + secrets: + DOCKER_PUBLISH_USERNAME: ${{ secrets.NFC_DOCKERHUB_USERNAME }} + DOCKER_PUBLISH_PASSWORD: ${{ secrets.NFC_DOCKERHUB_TOKEN }}