Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix tracking of Hugo version by updatecli by removing YAML anchor in Docker Compose #558

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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