diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1b98a9c..bc87d07 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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