Skip to content

Commit

Permalink
linux: make REPO_NAME injectable for fedora-systemd image
Browse files Browse the repository at this point in the history
I ran into the problem that if the repo
is not called jumpstart-docs, this leads to problem.
See https://github.com/BacLuc/jumpstart-docs-renovate
  • Loading branch information
BacLuc committed Mar 6, 2024
1 parent 0296bc1 commit cbf4e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
compose_paths="$compose_paths -f $i"
done
export REPO_NAME=$(basename $(pwd))
docker compose $compose_paths config > /tmp/docker-compose.yml
yq_pipe='.services.[]'
yq_pipe=$yq_pipe'| select(.build != null)'
Expand Down
2 changes: 1 addition & 1 deletion topics/linux/code/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
systemd:
image: ${REGISTRY:-ghcr.io}/${REPO_OWNER:-scs}/jumpstart-docs/fedora-systemd:${VERSION:-latest}
image: ${REGISTRY:-ghcr.io}/${REPO_OWNER:-scs}/${REPO_NAME:-jumpstart-docs}/fedora-systemd:${VERSION:-latest}
build: container
volumes:
- ./hello_world_service:/hello_world_service/hello_world_service
Expand Down

0 comments on commit cbf4e1c

Please sign in to comment.