From b50a1af95483c3487c8617091e2516472a9e942b Mon Sep 17 00:00:00 2001 From: Leandro Campos Date: Mon, 3 Aug 2026 15:20:58 -0300 Subject: [PATCH 1/2] Run public releases on ephemeral Nvoip CI --- .github/workflows/publish.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index add4e9f..46862d3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,12 @@ on: release: types: [published] workflow_dispatch: + inputs: + publish: + description: Publish to LuaRocks after validation + required: true + type: boolean + default: false permissions: contents: read @@ -11,13 +17,18 @@ permissions: jobs: luarocks: name: Publish to LuaRocks - runs-on: ubuntu-latest + runs-on: + - codebuild-nvoip-ci-public-release-${{ github.run_id }}-${{ github.run_attempt }} + - organization-registration-name:Nvoip + - registration-group-id:4 steps: - uses: actions/checkout@v4 - uses: leafo/gh-actions-lua@v11 with: luaVersion: "5.4" - uses: leafo/gh-actions-luarocks@v5 - - run: luarocks upload *.rockspec --api-key="$LUAROCKS_API_KEY" + - run: luarocks make --local + - if: github.event_name == 'release' || inputs.publish + run: luarocks upload *.rockspec --api-key="$LUAROCKS_API_KEY" env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} From edca2925e221fea941e70a9c06e128a27b13e663 Mon Sep 17 00:00:00 2001 From: Leandro Campos Date: Mon, 3 Aug 2026 16:19:22 -0300 Subject: [PATCH 2/2] ci: run public releases on nvoip-ci container --- .github/workflows/publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 46862d3..f16558a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,10 +17,7 @@ permissions: jobs: luarocks: name: Publish to LuaRocks - runs-on: - - codebuild-nvoip-ci-public-release-${{ github.run_id }}-${{ github.run_attempt }} - - organization-registration-name:Nvoip - - registration-group-id:4 + runs-on: [self-hosted, Linux, X64, nvoip-ci-public-release] steps: - uses: actions/checkout@v4 - uses: leafo/gh-actions-lua@v11