website/.gitea/workflows/build-doc.yml
ngn d38c4d71a4
Some checks failed
Build the docker image for the API / build (push) Failing after 8s
Build the docker image for the frontend application / build (push) Failing after 7s
Build the docker image for the doc server / build (push) Failing after 8s
fix the workflow branch
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-20 08:05:17 +03:00

29 lines
700 B
YAML

name: Build the docker image for the doc server
on:
push:
branches: ["main"]
env:
REGISTRY: git.ngn.tf
IMAGE: ${{gitea.repository}}/doc
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: |
docker build --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest .
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest