diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 04daa6e..4df8527 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -22,3 +22,8 @@ jobs: context: . push: true tags: git.timothykim.net/timothykim/static:latest + + - name: Deploy + run: | + curl -sf -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" \ + https://www.timothykim.net/watchtower/v1/update diff --git a/nginx.conf b/nginx.conf index de6ea40..347704c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,6 +8,10 @@ server { try_files $uri $uri/ /index.html; } + location /watchtower/ { + proxy_pass http://watchtower:8080/; + } + # Cache static assets aggressively location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ { expires 1y;