Files
timothykim.net/.gitea/workflows/build.yml
T
timothykim 732f700273
Build and Push Docker Image / build (push) Failing after 5s
Test Runner / test (push) Successful in 1s
Add debug and change the docker login
2026-03-10 23:40:05 -04:00

35 lines
782 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: Debug secret
run: |
if [ -z "$TOKEN" ]; then
echo "SECRET IS EMPTY"
else
echo "SECRET IS SET (length: ${#TOKEN})"
fi
env:
TOKEN: ${{ secrets.REGISTRY_TOKEN }}
- name: Login to Gitea Registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u timothykim --password-stdin
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: git.timothykim.net/timothykim/static:latest