ci: added watchtower deploy flow
Build and Deploy / build-docker (push) Successful in 6m47s Details

This commit is contained in:
antifallobst 2023-10-13 00:19:47 +02:00
parent a18c38509e
commit dd912b6f6f
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,6 @@ jobs:
with:
path: |
/tmp/.buildx-cache
/tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
restore-keys: |
${{ runner.os }}-buildx-
@ -36,7 +35,8 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Deploy
env:
TOWER_TOKEN: ${{ secrets.WatchtowerToken}}
TOWER_URI: ${{ secrets.WatchtowerURI}}
run: |
docker stop nerdcult-frontend
docker rm nerdcult-frontend
docker run --name=nerdcult-frontend --restart=always -p 16396:80 -d nerdcult_frontend
curl -H "Authorization: Bearer $TOWER_TOKEN" $TOWER_URI