Files
Nat20-Notes/.gitea/workflows/build.yaml
Jamie 7a1bb62100
Some checks failed
Build and Push / build (push) Failing after 8m42s
Update .gitea/workflows/build.yaml
Corrected terminology and docker login method
2026-07-10 11:21:56 +00:00

32 lines
1021 B
YAML

name: Build and Push
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Set lowercase repo path
run: echo "REPO_LC=$(echo '${{ gitea.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: gitea.kansaigaijin.com
username: ${{ gitea.actor }}
password: ${{ secrets.docker_builder }}
- name: Build and push backend
uses: docker/build-push-action@v5
with:
context: ./backend
target: runtime
push: true
tags: gitea.kansaigaijin.com/${{ env.REPO_LC }}/backend:latest
- name: Build and push frontend
uses: docker/build-push-action@v5
with:
context: ./frontend
push: true
tags: gitea.kansaigaijin.com/${{ env.REPO_LC }}/frontend:latest