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