ci: added watchtower deploy flow
Build and Deploy / build-docker (push) Successful in 6m47s
Details
Build and Deploy / build-docker (push) Successful in 6m47s
Details
This commit is contained in:
parent
a18c38509e
commit
dd912b6f6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue