aboutsummaryrefslogtreecommitdiffstats
path: root/.github/actions/docker-clean-image/action.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/docker-clean-image/action.yml')
-rw-r--r--.github/actions/docker-clean-image/action.yml19
1 files changed, 19 insertions, 0 deletions
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 <andrei.gherzan@huawei.com>
+#
+# 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