website/.gitea/workflows/build-doc.yml

30 lines
717 B
YAML
Raw Permalink Normal View History

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: |
cd doc
docker build --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest .
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest