Added docker push script and build cicd

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-05-21 22:54:44 +02:00
parent 71798be854
commit c73335c170
3 changed files with 37 additions and 8 deletions

9
scripts/docker-push.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
VERSION=0.1.0
LOCAL_IMAGE="athome"
REMOTE_IMAGE="athome"
docker build -t $LOCAL_IMAGE .
docker tag $LOCAL_IMAGE:latest mos4/$REMOTE_IMAGE:$VERSION
docker push mos4/$REMOTE_IMAGE:$VERSION