Files
timothykim.net/.gitea/workflows/build.yml
T
timothykim 716bb623b7
Build and Push Docker Image / build (push) Successful in 13s
fix debug step failing on curl errors, remove test workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 17:40:28 -04:00

39 lines
1.1 KiB
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: Debug - try direct connection bypassing proxy
run: |
set +e
echo "=== Via NPM (port 443) ==="
curl -sk -u "timothykim:${TOKEN}" https://git.timothykim.net/v2/ 2>&1
echo ""
echo "=== Direct to Gitea (port 3000) ==="
curl -sk -u "timothykim:${TOKEN}" http://git.timothykim.net:3000/v2/ 2>&1
echo ""
echo "=== Direct via host gateway ==="
curl -sk -u "timothykim:${TOKEN}" http://172.17.0.1:3000/v2/ 2>&1
env:
TOKEN: ${{ secrets.REGISTRY_TOKEN }}
- 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