Skip to content

Commit

Permalink
force base url for better SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
l10178 committed Apr 15, 2021
1 parent 061cfa1 commit a88320e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ on:

env:
IMAGE_NAME: idaas-book
HUGO_BASE_URL: https://www.nxest.com/idaas-book/

jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
Expand All @@ -31,7 +30,7 @@ jobs:
hugo-version: '0.80.0'

- name: Build
run: hugo --minify --baseURL /idaas-book
run: hugo --minify --baseURL $HUGO_BASE_URL

- name: Login to dockerhub
uses: docker/login-action@v1
Expand Down Expand Up @@ -62,8 +61,8 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
docker buildx build \
--tag nxest/idaas-book:$VERSION \
--tag nxest/idaas-book:lastest \
--tag nxest/$IMAGE_NAME:$VERSION \
--tag nxest/$IMAGE_NAME:lastest \
--platform linux/amd64,linux/arm64 \
-f Dockerfile ./ \
--push

0 comments on commit a88320e

Please sign in to comment.