diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index dbe8dcd..dd4105b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -39,3 +39,11 @@ jobs: docker build -t $IMAGE:$TAG -t $IMAGE:latest . docker push $IMAGE:$TAG docker push $IMAGE:latest + + - name: Deploy + run: | + IMAGE=git.bahamut.nitrix.one/dostulata/initiative + TAG=${GITHUB_REF#refs/tags/} + docker stop initiative || true + docker rm initiative || true + docker run -d --name initiative --restart unless-stopped -p 8080:80 $IMAGE:$TAG