Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build page

on:
push:
branches:
- main

jobs:
lint:
name: Lint
runs-on: ['self-hosted']

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Gcloud Auth
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCR_CREDENTIALS }}'

- name: Setup Gcloud SDK
uses: google-github-actions/setup-gcloud@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master

- name: Docker build and push
uses: docker/build-push-action@v6
with:
context: .
build-args: |
GH_PAT=${{ secrets.GH_PAT }}
GH_USER=kyber-ci-bot
file: Dockerfile
push: true
tags: |
asia.gcr.io/kyber-operation/sc/smart-intent-doc:latest
secrets: |
"gh_pat=${{ secrets.GH_PAT }}"
cache-from: type=gha
cache-to: type=gha,mode=max
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:13 as build
COPY ./ ./
RUN apt update && apt install -y curl git
RUN curl -L https://foundry.paradigm.xyz | bash && . /root/.bashrc && foundryup && forge doc --build


FROM nginx:latest
COPY --from=build /docs/book /usr/share/nginx/html