#7: Docker build command #10
+5
-1
@@ -8,6 +8,10 @@ inputs:
|
||||
tags:
|
||||
description: newline-separated list of tags to tag the image
|
||||
required: true
|
||||
containerfile:
|
||||
description: target container file to build
|
||||
required: false
|
||||
default: Containerfile
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -22,6 +26,6 @@ runs:
|
||||
[[ -z "$tag" ]] && continue
|
||||
|
||||
image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
|
||||
docker build -f Containerfile -t $image
|
||||
docker build -f ${{ containerfile }} -t $image .
|
||||
docker push $image
|
||||
done <<< "${{ inputs.tags }}"
|
||||
|
||||
Reference in New Issue
Block a user