From 12d1a7b7373c3034c441acc2ec8f6e12c0c7b11c Mon Sep 17 00:00:00 2001 From: Dan Haman Date: Mon, 28 Sep 2026 21:00:25 +0300 Subject: [PATCH] #7: Docker build command + action skeleton added --- docker/task.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker/task.yaml diff --git a/docker/task.yaml b/docker/task.yaml new file mode 100644 index 0000000..7d8494b --- /dev/null +++ b/docker/task.yaml @@ -0,0 +1,23 @@ +name: build & push +description: build & push OCI container images to the Gitea registry + +inputs: + name: + description: image name + required: true + tags: + description: newline-separated list of tags to tag the image + required: true + +runs: + using: composite + steps: + - shell: bash + run: | + docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${{ gitea.server_url }} + while IFS= read -r tag; do + [[ -z "$tag" ]] && continue + + docker build -f Containerfile -t "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag" + docker push "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag" + done <<< "${{ inputs.tags }}"