Compare commits

..

1 Commits

Author SHA1 Message Date
moilanik a566998180 siivous
CI / Load gitea-env.conf to pipeline env (push) Successful in 11s
ci-check Build version 0.1.5 required
ci-docker-build Docker build 0.1.5 OK
ci-docker-push Docker push 0.1.5 OK
ci-docker-tag Tag 0.1.5 OK
CI / Build & Push Artifact (push) Successful in 1m24s
2026-06-15 12:43:33 +03:00
+18 -2
View File
@@ -335,6 +335,22 @@ jobs:
- name: Delete build artifacts - name: Delete build artifacts
run: | run: |
echo "Siivotaan artifactit..." echo "Siivotaan artifactit..."
curl -s -X DELETE \ 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 }}" \ -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
"${{ gitea.server_url }}/api/v1/repos/${{ github.repository }}/actions/artifacts" "${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