Files
timothykim.net/.gitea/workflows/build.yml
T
timothykim 482dcec7f2
Build and Push Docker Image / build (push) Failing after 6s
add watchtower deploy step and nginx proxy for update endpoint
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 18:09:05 -04:00

30 lines
713 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u ${{ gitea.actor }} --password-stdin
- name: Build and Push
uses: docker/build-push-action@v5
with:
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