Skip to content

Commit

Permalink
Update build, hugo and nginx. (#49)
Browse files Browse the repository at this point in the history
* build: Update GitHub actions.

* build: Update to hugo 0.134.0

- Add a trailing slash to baseURL as expected by the new hugo version.
- Use the newer css.Sass instead of deprecated resources.ToCSS

* docker: Use nginx 1.26 (latest stable)
  • Loading branch information
jholdstock authored Sep 5, 2024
1 parent ddfd0a2 commit f704117
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Build
run: docker build -t decred/dexweb:$(date +%s) .
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build image
FROM alpine:latest

ENV HUGO_VERSION 0.110.0
ENV HUGO_VERSION 0.134.0

LABEL description="gohugo build"
LABEL version="1.0"
Expand All @@ -25,7 +25,7 @@ RUN rm -rf public resources
RUN hugo --buildFuture

# Serve image (stable nginx version)
FROM nginx:1.22-alpine
FROM nginx:1.26-alpine

LABEL description="dexweb server"
LABEL version="1.0"
Expand Down
2 changes: 1 addition & 1 deletion bin/watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ ${HUGO} server \
--buildDrafts \
--disableFastRender \
--source src \
--baseURL http://localhost:1313
--baseURL http://localhost:1313/
2 changes: 1 addition & 1 deletion src/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<link rel="stylesheet" href="{{ $bootstrap.Permalink }}">

{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
{{ $style := resources.Get "scss/main.scss" | css.Sass $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<!-- End styles -->

Expand Down

0 comments on commit f704117

Please sign in to comment.