refactor: update build job to use Ubuntu and add Gitea context logging
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
- 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 "-------------------------------------------------"
|
||||
Reference in New Issue
Block a user