-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build and push data server image (#362)
Example build: https://github.com/hasura/ndc-hub/actions/runs/11504635181/job/32024555973 Example image: https://github.com/hasura/ndc-hub/pkgs/container/ndc-hub/294770878?tag=data-server.2704da13c6dfe54b7b50a1f2b9cafecf343bab58 Try running ``` docker run --rm -it -p 7070:80 ghcr.io/hasura/ndc-hub:data-server.2704da13c6dfe54b7b50a1f2b9cafecf343bab58 ``` and visit localhost:7070 to check out the files
- Loading branch information
1 parent
6334ad1
commit 5d7782c
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
localhost | ||
|
||
file_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ARG DATA_TAG | ||
|
||
FROM ghcr.io/hasura/ndc-hub:$DATA_TAG as data | ||
|
||
FROM caddy:alpine | ||
|
||
COPY --from=data /assets /srv | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["caddy", "file-server", "--browse", "--root", "/srv"] |