This commit is contained in:
parent
6051a52dba
commit
9fdaa03f7b
1 changed files with 11 additions and 9 deletions
|
@ -3,14 +3,15 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
logLevel:
|
logLevel:
|
||||||
description: "Log level"
|
description: "Verbose"
|
||||||
required: true
|
required: false
|
||||||
default: "warning"
|
default: false
|
||||||
type: choice
|
type: boolean
|
||||||
options:
|
build:
|
||||||
- info
|
description: "Build container"
|
||||||
- warning
|
required: false
|
||||||
- debug
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -35,7 +36,7 @@ jobs:
|
||||||
run: uv pip install httpx
|
run: uv pip install httpx
|
||||||
|
|
||||||
- name: Echo env
|
- name: Echo env
|
||||||
if: ${{ inputs.logLevel }} == 'debug'
|
if: ${{ inputs.verbose }}
|
||||||
run: |
|
run: |
|
||||||
echo '${{ toJSON(env) }}'
|
echo '${{ toJSON(env) }}'
|
||||||
|
|
||||||
|
@ -43,6 +44,7 @@ jobs:
|
||||||
run: pytest -s tests/basic.py
|
run: pytest -s tests/basic.py
|
||||||
|
|
||||||
- name: Build container
|
- name: Build container
|
||||||
|
if: ${{ inputs.build }}
|
||||||
uses: actions/buildah-build@v1
|
uses: actions/buildah-build@v1
|
||||||
with:
|
with:
|
||||||
image: treetrail-backend
|
image: treetrail-backend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue