Update docker/build/action.yaml
This commit is contained in:
parent
96253dd288
commit
f6d899b1b4
@ -1,6 +1,10 @@
|
|||||||
name: Build docker image
|
name: Build docker image
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
registry:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: $GITHUB_SERVER_URL
|
||||||
image:
|
image:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -16,4 +20,4 @@ runs:
|
|||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g")
|
TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g")
|
||||||
docker build --no-cache -t "${{inputs.image}}:$TAG" .
|
docker build --no-cache -t "${{inputs.registry}}/${{inputs.image}}:$TAG" .
|
||||||
|
Loading…
Reference in New Issue
Block a user