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