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