#7: Docker build command #10

Merged
devastator merged 8 commits from feature/7-docker into master 2026-09-29 00:22:06 +03:00
Showing only changes of commit 12d1a7b737 - Show all commits
+23
View File
@@ -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 }}"