Compare commits

...

1 Commits

Author SHA1 Message Date
moilanik 63ce59e604 clean
CI / Load gitea-env.conf to pipeline env (push) Successful in 13s
ci-check Build version 0.1.6 required
ci-docker-build Docker build 0.1.6 OK
ci-docker-push Docker push 0.1.6 OK
ci-docker-tag Tag 0.1.6 OK
CI / Build & Push Artifact (push) Successful in 1m21s
2026-06-15 13:13:13 +03:00
+5 -27
View File
@@ -259,6 +259,11 @@ jobs:
source /tmp/build-ctx/build.env
bash scripts/report-status.sh failure "Docker push $NEXT_VERSION FAILED" ci-docker-push
- name: Clean up Docker image artifact
if: steps.gatekeeper.outputs.skip == 'false'
run: |
rm -f /tmp/image/artifact.tar
tag-commit:
runs-on: ubuntu-latest
needs: [check, push]
@@ -327,30 +332,3 @@ jobs:
source /tmp/build-ctx/build.env
bash scripts/report-status.sh failure "Tag $NEXT_VERSION FAILED" ci-docker-tag
cleanup:
runs-on: ubuntu-latest
needs: [tag-commit]
if: always()
steps:
- name: Delete build artifacts
run: |
echo "Siivotaan artifactit..."
RUN_ID="${{ github.run_id }}"
REPO="${{ github.repository }}"
SERVER="${{ gitea.server_url }}"
# List artifacts for this run
ARTIFACTS=$(curl -s \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
"${SERVER}/api/v1/repos/${REPO}/actions/runs/${RUN_ID}/artifacts")
echo "Artifacts: $(echo "$ARTIFACTS" | jq -r '.artifacts | length') kpl"
# Delete each by name
echo "$ARTIFACTS" | jq -r '.artifacts[] | .name' | while IFS= read -r name; do
echo "Deleting: $name"
curl -s -X DELETE \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
"${SERVER}/api/v1/repos/${REPO}/actions/runs/${RUN_ID}/artifacts/${name}"
echo " -> deleted $name"
done