Skip to content

Instantly share code, notes, and snippets.

View zigang93's full-sized avatar
❤️‍🔥
Always bet on rust lang

Tan Zi Gang zigang93

❤️‍🔥
Always bet on rust lang
  • PingSpace
  • Penang , Malaysia
  • 01:45 (UTC +08:00)
View GitHub Profile
@zigang93
zigang93 / pull-run-docker-image.sh
Created August 8, 2024 07:54
Run docker image at background and remove image before deploy
#!/bin/bash
if [ -z "$1" ]; then
echo "Please provide the image registry as the first argument."
exit 1
fi
if [ -z "$2" ]; then
echo "Please provide the image name as the second argument."
exit 1