From 7197043d8a3a9a3b6a057557905a35ec4f2d459c Mon Sep 17 00:00:00 2001 From: hangpersonal Date: Sat, 18 Oct 2025 22:11:15 -0700 Subject: [PATCH] Add .gitea/workflows/*.yaml --- .gitea/workflows/010_ci_docker_image.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/010_ci_docker_image.yaml b/.gitea/workflows/010_ci_docker_image.yaml index c3ecd2c..6a92cee 100644 --- a/.gitea/workflows/010_ci_docker_image.yaml +++ b/.gitea/workflows/010_ci_docker_image.yaml @@ -71,7 +71,7 @@ jobs: with: name: image path: /tmp/image.tar - retention-days: 2 + retention-days: 1 integration-tests: runs-on: ubuntu-22.04 @@ -121,7 +121,7 @@ jobs: with: name: trivy-results path: /tmp/trivy-results.json - retention-days: 2 + retention-days: 1 publish-image: runs-on: ubuntu-22.04 @@ -143,4 +143,8 @@ jobs: - name: Push Docker image run: | docker image ls -a - docker push ${{ inputs.image-name }}:${{ inputs.image-tag }} \ No newline at end of file + docker push ${{ inputs.image-name }}:${{ inputs.image-tag }} + - name: Clean Docker image on Host + run: | + docker rmi ${{ inputs.image-name }}:${{ inputs.image-tag }} + docker image ls -a \ No newline at end of file