We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50dd959 commit 0b23cbaCopy full SHA for 0b23cba
.github/workflows/manual-docker-clean.yaml
@@ -0,0 +1,29 @@
1
+# Copyright (C) 2024 Intel Corporation
2
+# SPDX-License-Identifier: Apache-2.0
3
+
4
+name: Clean up container on manual event
5
+on:
6
+ workflow_dispatch:
7
+ inputs:
8
+ node:
9
+ default: "rocm"
10
+ description: "Hardware to clean"
11
+ required: true
12
+ type: string
13
+ clean_list:
14
+ default: ""
15
+ description: "docker command to clean"
16
17
18
19
+jobs:
20
+ clean:
21
+ runs-on: "${{ inputs.node }}"
22
+ steps:
23
+ - name: Clean up container
24
+ run: |
25
+ docker ps
26
+ if [ "${{ inputs.clean_list }}" ]; then
27
+ docker stop ${{ inputs.clean_list }} && docker rm ${{ inputs.clean_list }}
28
29
+ fi
0 commit comments