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
|
shell: powershell
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-plume:
|
build-and-push-image:
|
||||||
runs-on: windows
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
permissions:
|
||||||
matrix:
|
contents: read
|
||||||
build_configuration: ['Debug', 'Release']
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: ref
|
- name: Dump Gitea context
|
||||||
run: echo ${{ github.event.ref }} # is null on PR otherwise refs/heads/dev on commit
|
run: |
|
||||||
- name: type
|
Write-Host "Gitea Context:"
|
||||||
run: echo ${{ github.ref_type }} # is null on PR otherwise branch on commit
|
Write-Host "-------------------------------------------------"
|
||||||
- name: ref_name
|
Write-Host "actor: $($env:GITEA_ACTOR)"
|
||||||
run: echo ${{ gitea.ref_name }} # is PR number on PR otherwise branch on commit
|
Write-Host "base_ref: $($env:GITEA_BASE_REF)"
|
||||||
- name: distribute
|
Write-Host "event_name: $($env:GITEA_EVENT_NAME)"
|
||||||
if: ${{ (matrix.build_configuration == 'Release') && (gitea.ref_name == 'dev' || gitea.ref_type == 'tag') }}
|
Write-Host "head_ref: $($env:GITEA_HEAD_REF)"
|
||||||
run: echo ${{ gitea.ref_name }}
|
Write-Host "ref: $($env:GITEA_REF)"
|
||||||
- name: notify
|
Write-Host "repository: $($env:GITEA_REPOSITORY)"
|
||||||
if: failure()
|
Write-Host "server_url: $($env:GITEA_SERVER_URL)"
|
||||||
run: echo failure
|
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