This commit is contained in:
parent
0393e50fc7
commit
f3e917ff98
1 changed files with 9 additions and 4 deletions
|
@ -2,13 +2,18 @@ on:
|
|||
push:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
logLevel:
|
||||
verbose:
|
||||
description: "Verbose"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
build:
|
||||
description: "Build container"
|
||||
description: "Build container image"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
push:
|
||||
description: "Push container image to registry"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
|
@ -46,7 +51,7 @@ jobs:
|
|||
- name: Install podman and buildah
|
||||
if: ${{ inputs.build }}
|
||||
run: |
|
||||
apt-get install -y podman buildah
|
||||
apt-get install -y --no-install-recommends podman buildah
|
||||
|
||||
- name: Build container
|
||||
if: ${{ inputs.build }}
|
||||
|
@ -58,7 +63,7 @@ jobs:
|
|||
./Containerfile.for_runner
|
||||
|
||||
- uses: actions/push-to-registry@v2
|
||||
if: ${{ inputs.build }}
|
||||
if: ${{ inputs.push }}
|
||||
with:
|
||||
registry: "docker://${{ vars.REPOSITORY }}"
|
||||
image: treetrail-backend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue