Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Virv12 committed Feb 3, 2024
1 parent 077b591 commit c949939
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deploy

on:
push:
branches:
- main
on: push

jobs:
deploy:
Expand All @@ -14,27 +11,12 @@ jobs:
with:
submodules: 'recursive'

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install asymptote
run: sudo apt-get install -y asymptote

- name: Asymptote workaround
run: sudo ln -sf /tmp/textput.log /tmptexput.log

- name: Setup package registry
run: |
npm config set @olinfo:registry https://git.olinfo.it/api/packages/bortoz/npm/
npm config set -- '//git.olinfo.it/api/packages/bortoz/npm/:_authToken' "${{ secrets.GITEA_TOKEN }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
echo "//git.olinfo.it/api/packages/bortoz/npm/:_authToken=${{ secrets.GITEA_TOKEN }}" >> .npmrc
- name: Build
run: yarn build
- name: Docker
run: docker run -v .:/scolastiche archlinux /scolastiche/tools/build.sh

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
6 changes: 6 additions & 0 deletions tools/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -xe

pacman -Sy --noconfirm asymptote yarn
yarn install --frozen-lockfile
yarn build

0 comments on commit c949939

Please sign in to comment.