Skip to content

Commit

Permalink
Build documentation and create docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Malk committed Nov 15, 2024
1 parent 0997c5a commit e78335c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-image-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rollup

on:
push:
branches: [ "master" ]


jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: cd ./docs/sliver-docs
- run: npm install
- run: npm run offline

5 changes: 0 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ name: Docker
# documentation.

on:
schedule:
- cron: '39 19 * * *'
push:
branches: [ "master" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "master" ]

env:
# Use docker.io for Docker Hub if empty
# github.repository as <account>/<repo>
Expand Down
11 changes: 11 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3-slim

WORKDIR /opt

COPY www.zip /opt/

RUN unzip -o www.zip

EXPOSE 8000

ENTRYPOINT ["python", "-m", "http.server", "8000"]

0 comments on commit e78335c

Please sign in to comment.