38 lines
1.1 KiB
YAML
38 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: |
|
|
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
|