Skip to content

Commit

Permalink
fix hugo base url
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis authored and nicolastakashi committed Jan 16, 2024
1 parent 062ba1c commit 0f3380a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
15 changes: 8 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 6 in docker-compose.yaml

View workflow job for this annotation

GitHub Actions / validate-yaml

6:81 [line-length] line too long (153 > 80 characters)
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"
Expand Down
5 changes: 2 additions & 3 deletions scripts/synchronize.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
##
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 0f3380a

Please sign in to comment.