From 0f775eaed5c162eff60d5dc556037772aa5511c2 Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Tue, 29 Apr 2025 15:35:42 -0700 Subject: [PATCH] refactor: update build job to use Ubuntu and add Gitea context logging Signed-off-by: Stephen Simpson --- .gitea/workflows/test.yml | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 2903f1c..975eeab 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -15,21 +15,25 @@ defaults: shell: powershell jobs: - build-plume: - runs-on: windows - strategy: - matrix: - build_configuration: ['Debug', 'Release'] + build-and-push-image: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - - name: ref - run: echo ${{ github.event.ref }} # is null on PR otherwise refs/heads/dev on commit - - name: type - run: echo ${{ github.ref_type }} # is null on PR otherwise branch on commit - - name: ref_name - run: echo ${{ gitea.ref_name }} # is PR number on PR otherwise branch on commit - - name: distribute - if: ${{ (matrix.build_configuration == 'Release') && (gitea.ref_name == 'dev' || gitea.ref_type == 'tag') }} - run: echo ${{ gitea.ref_name }} - - name: notify - if: failure() - run: echo failure \ No newline at end of file + - name: Dump Gitea context + run: | + Write-Host "Gitea Context:" + Write-Host "-------------------------------------------------" + Write-Host "actor: $($env:GITEA_ACTOR)" + Write-Host "base_ref: $($env:GITEA_BASE_REF)" + Write-Host "event_name: $($env:GITEA_EVENT_NAME)" + Write-Host "head_ref: $($env:GITEA_HEAD_REF)" + Write-Host "ref: $($env:GITEA_REF)" + Write-Host "repository: $($env:GITEA_REPOSITORY)" + Write-Host "server_url: $($env:GITEA_SERVER_URL)" + Write-Host "sha: $($env:GITEA_SHA)" + Write-Host "workflow: $($env:GITEA_WORKFLOW)" + Write-Host "workflow_ref: $($env:GITEA_WORKFLOW_REF)" + Write-Host "workflow_sha: $($env:GITEA_WORKFLOW_SHA)" + Write-Host "-------------------------------------------------" \ No newline at end of file