From 113fdbeca112f0495ff0edfc7f9275ca4625d257 Mon Sep 17 00:00:00 2001 From: Agustin Celentano <12614595+agustincelentano@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:29:21 -0300 Subject: [PATCH] ci: replace app-template workflow with conventional-commit + release The previous ci.yml was residual from the 'Any Technology' application template (docker build + np asset push) and has no meaning for a repo that ships service specs/workflows. Drop it and adopt the same CI setup used by sibling service repos (e.g. services-postgresql-k-8-s): - conventional-commit.yml: validates PR titles on pull_request to main. - release.yml: generates semantic releases on push to main using conventional commits to decide the bump. Both workflows inherit from nullplatform/actions-nullplatform. --- .github/workflows/ci.yml | 28 ----------------------- .github/workflows/conventional-commit.yml | 10 ++++++++ .github/workflows/release.yml | 15 ++++++++++++ 3 files changed, 25 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/conventional-commit.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index ce7b173..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: ci-nullplatform -env: - NULLPLATFORM_API_KEY: ${{ secrets.NULLPLATFORM_API_KEY }} -on: - push: - branches: - - main -permissions: - id-token: write - contents: read - packages: read -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Install nullplatform cli - run: curl https://cli.nullplatform.com/install.sh | sh - - name: Checkout code - uses: actions/checkout@v4 - - name: Start nullplatform CI - run: np build start - - name: Build asset - run: docker build -t main . - - name: Push asset - run: np asset push --type docker-image --source main - - name: End nullplatform CI - if: ${{ always() }} - run: np build update --status ${{ contains(fromJSON('["failure", "cancelled"]'), job.status) && 'failed' || 'successful' }} \ No newline at end of file diff --git a/.github/workflows/conventional-commit.yml b/.github/workflows/conventional-commit.yml new file mode 100644 index 0000000..92952e1 --- /dev/null +++ b/.github/workflows/conventional-commit.yml @@ -0,0 +1,10 @@ +name: conventional-commit + +on: + pull_request: + branches: + - main + +jobs: + conventional-commit: + uses: nullplatform/actions-nullplatform/.github/workflows/conventional-commit.yml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8a65e73 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +name: release + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release: + uses: nullplatform/actions-nullplatform/.github/workflows/release.yml@main + secrets: inherit