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