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 c79ac35
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-image-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 }}
- run: cd ./docs/sliver-docs && npm install
- run: cd ./docs/sliver-docs && npm run offline

- uses: actions/upload-artifact@v3
with:
name: app-build
path: ./docs/sliver-docs
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 c79ac35

Please sign in to comment.