Skip to content

Commit

Permalink
Add cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hatamiarash7 committed Jun 1, 2023
1 parent 09532c9 commit e028793
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ deploy() {
/service/arvan paas ${NS} set image deployment ${APP} ${CONTAINER}=${IMAGE}
}

cleanup() {
printf " -----> Cleanup\n"
rm -rf /root/.arvan
}

main() {
set -e
print_header
Expand All @@ -75,6 +80,7 @@ main() {
download_cli_tool
login
deploy
cleanup
}

main "$@"

0 comments on commit e028793

Please sign in to comment.