Skip to content

Commit

Permalink
chore: fix tracking of Hugo version by updatecli by removing YAML anc…
Browse files Browse the repository at this point in the history
…hor in Docker Compose

Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal committed Nov 14, 2024
1 parent 176c2fe commit 4a167f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ jobs:
with:
# this is needed to checkout theme which normally come from separate git repository
submodules: true
- name: Check site can be built with the docker compose image
run: docker compose --profile=donotstart up build
- name: Check site can be started in background with docker compose and work as expected
run: |
docker compose up --detach
sleep 5
curl --fail --verbose http://localhost:1313 --output /dev/null
- name: Check hugo binary is present and can be executed (inside container)
run: docker compose exec status hugo version
13 changes: 3 additions & 10 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
x-base: &base
image: hugomods/hugo:ci-0.128.0
volumes:
- .:/src

services:
status:
<<: *base
image: hugomods/hugo:ci-0.128.0
volumes:
- .:/src
ports:
- 1313:1313
command: "hugo serve --bind 0.0.0.0 --cleanDestinationDir --disableFastRender --printPathWarnings --printMemoryUsage --noHTTPCache"
build:
<<: *base
profiles:
- donotstart
2 changes: 1 addition & 1 deletion updatecli/updatecli.d/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ targets:
spec:
engine: yamlpath
file: docker-compose.yaml
key: $.x-base.image
key: $.services.status.image
scmid: default
updateNetlifyConfig:
kind: file
Expand Down

0 comments on commit 4a167f1

Please sign in to comment.