diff --git a/.github/actions/docker-clean-image/action.yml b/.github/actions/docker-clean-image/action.yml new file mode 100644 index 0000000..dfc18d9 --- /dev/null +++ b/.github/actions/docker-clean-image/action.yml @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# SPDX-License-Identifier: MIT + +name: "Cleanup docker storage" + +inputs: + docker_image: + required: true + description: "The name of the docker image" + +runs: + using: "composite" + steps: + - name: Cleanup temporary image + shell: bash + run: | + echo "Cleanup ${{ inputs.docker_image }} image..." + docker rmi "${{ inputs.docker_image }}" || true