Files
pub-quiz/.gitea/workflows/docker.yaml
Jay 5e7793233e
Some checks failed
Build and Push Docker Image / build (push) Failing after 3s
Add debug to workflow
2026-03-31 15:08:40 +01:00

38 lines
951 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 auth vars
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
echo "USER: $REGISTRY_USER"
echo "TOKEN LENGTH: ${#REGISTRY_TOKEN}"
- name: Login to Gitea Registry
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
echo "$REGISTRY_TOKEN" | docker login gitea.umbra.mom \
-u "$REGISTRY_USER" \
--password-stdin
- name: Build image
run: |
docker build -t gitea.umbra.mom/jay/pub-quiz:latest .
- name: Push image
run: |
docker push gitea.umbra.mom/jay/pub-quiz:latest