website/.gitea/workflows/build-api.yml
ngn 1c99aee43d
All checks were successful
Build the docker image for the API / build (push) Successful in 2m8s
Build the docker image for the frontend application / build (push) Successful in 1m0s
Build the docker image for the doc server / build (push) Successful in 31s
forgor to change dir in the workflows
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-20 08:07:43 +03:00

30 lines
710 B
YAML

name: Build the docker image for the API
on:
push:
branches: ["main"]
env:
REGISTRY: git.ngn.tf
IMAGE: ${{gitea.repository}}/api
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: "https://github.com/actions/checkout@v4"
- name: Login to container repo
uses: "https://github.com/docker/login-action@v1"
with:
registry: ${{env.REGISTRY}}
username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}}
- name: Build image
run: |
cd api
docker build --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest .
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest