add watchtower deploy step and nginx proxy for update endpoint
Build and Push Docker Image / build (push) Failing after 6s
Build and Push Docker Image / build (push) Failing after 6s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,3 +22,8 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: git.timothykim.net/timothykim/static:latest
|
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
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ server {
|
|||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /watchtower/ {
|
||||||
|
proxy_pass http://watchtower:8080/;
|
||||||
|
}
|
||||||
|
|
||||||
# Cache static assets aggressively
|
# Cache static assets aggressively
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
|
|||||||
Reference in New Issue
Block a user