Skip to content

Commit

Permalink
ci: build and push data-server image
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptnull committed Oct 24, 2024
1 parent 6ac8a74 commit 726dee9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ddn-assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate data and push image
- name: Build and push data image
run: |
export NDC_HUB_GIT_REPO_FILE_PATH=$PWD
echo "NDC_HUB_GIT_REPO_FILE_PATH = $NDC_HUB_GIT_REPO_FILE_PATH"
Expand All @@ -42,3 +42,9 @@ jobs:
docker build -t ghcr.io/hasura/ndc-hub:data.$GITHUB_SHA . --push
popd
- name: Build and push data server image
run: |
pushd docker/server
docker build -t ghcr.io/hasura/ndc-hub:data-server.$GITHUB_SHA . --push
popd
3 changes: 3 additions & 0 deletions docker/server/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
localhost

file_server
11 changes: 11 additions & 0 deletions docker/server/Dockerfile
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"]

0 comments on commit 726dee9

Please sign in to comment.