85ff952562
Build and Push Docker Image / build (push) Successful in 7s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
818 B
YAML
32 lines
818 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: |
|
|
echo "Attempting to reach watchtower endpoint..."
|
|
curl -v -w "\nHTTP_CODE:%{http_code}\n" \
|
|
-H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" \
|
|
https://www.timothykim.net/watchtower/v1/update
|