diff --git a/docker-compose.yaml b/docker-compose.yaml index 45a0f6c..2e81155 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,19 +1,20 @@ -version: '3.9' +version: "3.9" + services: website: - build: - context: . - dockerfile: ./website/Dockerfile - args: - - HUGO_BASEURL=https://perses.dev + image: hugomods/hugo + command: hugo server --watch --bind=0.0.0.0 --disableLiveReload=true --minify -environment production --baseURL https://perses.dev --appendPort=false restart: unless-stopped ports: - - "5001:80" + - 1313:1313 + volumes: + - ./website:/src labels: - "traefik.enable=true" # The domain the service will respond to - "traefik.http.routers.website.rule=Host(`perses.dev`)" - "traefik.http.routers.website.tls.certresolver=myresolver" + - "traefik.http.services.website.loadbalancer.server.port=1313" demo: image: "docker.io/persesdev/perses:main-2023-12-19-6a7acd38-distroless" diff --git a/scripts/synchronize.sh b/scripts/synchronize.sh index 6369d6c..569ce31 100755 --- a/scripts/synchronize.sh +++ b/scripts/synchronize.sh @@ -1,7 +1,6 @@ #!/bin/bash ROOT_DIR=$(pwd) -TAG_FILTER_RE="v(0|[1-9]\d*)\.([1-9]\d*).0" GREP=$(which ggrep 2>/dev/null || which grep) BASE_OUTPUT_DIR=$ROOT_DIR/website/content/docs REPOS_DIR=$ROOT_DIR/repos @@ -38,7 +37,7 @@ cd $PERSES_REPO_DIR git fetch --tags ## Get all the tags that match the filter -RELEASE_TAGS=$(git tag --list | $GREP -E "${TAG_FILTER_RE}" | sort -V) +RELEASE_TAGS=$(git tag --list | grep -E 'v([0-9]+)\.([0-9]+)\.0' | grep -v -E 'v([0-9]+)\.([0-9]+)\.0-rc[0-9]+' | sort -V) ## Starting processing perses docs using mdox ## @@ -101,7 +100,7 @@ TEMP_RELEASE_DIR="$TMP_DOCS_DIR/${release_tag}" mkdir -p $TEMP_RELEASE_DIR # Extract the archive -tar -xjvf $TMP_DOCS_DIR/${release_tag}.tar.gz -C $TEMP_RELEASE_DIR +tar -xzf $TMP_DOCS_DIR/${release_tag}.tar.gz -C $TEMP_RELEASE_DIR export INPUT_CONTENT_DIR=$TEMP_RELEASE_DIR/docs export OUTPUT_CONTENT_DIR=$BASE_OUTPUT_DIR/perses/${release_tag}