Strict container workflow
This commit is contained in:
parent
032a40ef55
commit
4142f5c3b1
|
@ -6,20 +6,25 @@ on:
|
|||
DOCKER_REG_DOMAIN:
|
||||
description: Domain of the Gitea instance used as registry.
|
||||
required: true
|
||||
type: string
|
||||
default: gitfub.space
|
||||
DOCKER_ORG:
|
||||
description: Gitea organization or user to use as registry.
|
||||
required: true
|
||||
type: string
|
||||
DOCKER_LATEST:
|
||||
required: false
|
||||
type: string
|
||||
default: latest
|
||||
secrets:
|
||||
DOCKER_USERNAME:
|
||||
description: User to upload built container as.
|
||||
required: true
|
||||
type: string
|
||||
DOCKER_PASSWORD:
|
||||
description: Password (or auth token) to upload built container as.
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
release-image:
|
||||
|
@ -29,6 +34,21 @@ jobs:
|
|||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
- name: Check inputs
|
||||
run: |
|
||||
if [[ -z "${{ DOCKER_REG_DOMAIN }}" ]]; then
|
||||
echo "Must provide: jobs.<id>.with.DOCKER_REG_DOMAIN"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z "${{ DOCKER_ORG }}" ]]; then
|
||||
echo "Must provide: jobs.<id>.with.DOCKER_ORG"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z "${{ DOCKER_LATEST }}" ]]; then
|
||||
echo "Must provide: jobs.<id>.with.DOCKER_LATEST"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user