Skip to content

Commit

Permalink
Refine script.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 11, 2023
1 parent 31372c4 commit f93ee25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- v1*

jobs:
k8s:
name: release-k8s
deploy:
name: release
runs-on: ubuntu-20.04

steps:
Expand Down Expand Up @@ -82,4 +82,10 @@ jobs:
registry.cn-hangzhou.aliyuncs.com/ossrs/versions:$SRS_MAJOR
END
bash /root/restart_docs-srsversion.sh
#
# Cleanup old docker images.
for image in $(docker images |grep '<none>' |awk '{print $3}'); do
docker rmi -f $image
echo "Remove image $image, r0=$?"
done

0 comments on commit f93ee25

Please sign in to comment.