File: build-website.sh

package info (click to toggle)
liquidsoap 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,372 kB
  • sloc: ml: 71,806; javascript: 27,320; ansic: 398; xml: 114; sh: 99; lisp: 96; makefile: 26
file content (15 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

PWD=$(dirname "$0")
BASE_DIR=$(cd "${PWD}/../.." && pwd)

DOCKER_IMAGE=savonet/liquidsoap-github-actions-website

docker build --no-cache --tag "${DOCKER_IMAGE}" --file "${BASE_DIR}/.github/docker/website.dockerfile" .

id="$(docker create "${DOCKER_IMAGE}")"
docker cp "$id:/tmp/liquidsoap-full/website/html" html/
docker cp "$id:/tmp/liquidsoap-full/website/content/doc-dev/reference.md" html/reference.md
docker rm -v "$id"