11 Commits
v1 .. v2

Author SHA1 Message Date
devastator 7df71c0278 Merge pull request '#7: Docker build command' (#10) from feature/7-docker into master
Reviewed-on: #10
2026-09-29 00:22:06 +03:00
devastator b34fa35ec7 #7: Docker build command
+ building improved
2026-09-28 23:36:42 +03:00
devastator 06b262de81 #7: Docker build command
+ containerfile variable fixed
2026-09-28 21:53:37 +03:00
devastator 436e40d2ca #7: Docker build command
+ build context fixed
+ variable containerfile name support
2026-09-28 21:49:37 +03:00
devastator d6f55c70cb #7: Docker build command
+ url refernce updated
2026-09-28 21:33:08 +03:00
devastator 31379026f3 #7: Docker build command
+ url refernce updated
2026-09-28 21:31:51 +03:00
devastator 184358025f #7: Docker build command
+ url refernce updated
2026-09-28 21:27:28 +03:00
devastator 5bd2aaa7a9 #7: Docker build command
+ typo fixed
2026-09-28 21:03:43 +03:00
devastator 12d1a7b737 #7: Docker build command
+ action skeleton added
2026-09-28 21:00:25 +03:00
devastator a04f461c12 Merge pull request '#8 : Publish fails if path provided' (#9) from bug/8-filenames into master
Reviewed-on: #9
2026-09-28 19:46:56 +03:00
devastator db7460ca33 #8 : Publish fails if path provided
+ extra slashes in filename issue fixed
2026-09-28 19:46:44 +03:00
4 changed files with 39 additions and 1 deletions
+1
View File
@@ -201,3 +201,4 @@ cython_debug/
# PyPI configuration file
.pypirc
*.code-workspace
+1
View File
@@ -20,5 +20,6 @@ runs:
$NAME: ${{ inputs.name }}
run: |
name="${NAME:-${{ inputs.file }}}"
name="${name##*/}"
curl --fail-with-body -X POST -H "Authorization: token ${ACTI_BOT_TOKEN}" -F "attachment=@${{ inputs.file }}" \
${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases/${{ inputs.release }}/assets?name=${name}
+33
View File
@@ -0,0 +1,33 @@
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
containerfile:
description: target container file to build
required: false
default: Containerfile
runs:
using: composite
steps:
- shell: bash
run: |
repo_url="${{ gitea.event.repository.html_url }}"
repo_host="${repo_url#https://}"
repo_host="${repo_host%%/*}"
docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${repo_host}
docker build -f ${{ inputs.containerfile }} -t img-${{ gitea.run_id }} .
while IFS= read -r tag; do
[[ -z "$tag" ]] && continue
image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
docker tag img-${{ gitea.run_id }} $image
docker push $image
done <<< "${{ inputs.tags }}"
+4 -1
View File
@@ -20,8 +20,11 @@ runs:
using: composite
steps:
- shell: bash
env:
INPUT_FILE: ${{ inputs.file }}
run: |
set -euo pipefail
filename="${INPUT_FILE##*/}"
if [[ "${{ inputs.force }}" == "true" ]]; then
status="$(
curl --silent --show-error --output /dev/null --write-out '%{http_code}' \
@@ -41,4 +44,4 @@ runs:
curl --fail-with-body \
--user "acti-bot:${ACTI_BOT_TOKEN}" \
--upload-file ${{ inputs.file }} \
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${filename}"