Skip to content

Commit

Permalink
add missing build args and run sample
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptnull committed Oct 24, 2024
1 parent 726dee9 commit 4d7492e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ddn-assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- "main"
- "vishnu/cps-1079-build-and-push-ndc-hubdata-servercommit-sha-docker-images"

env:
DATA_TAG: data.$GITHUB_SHA
DDN_ASSETS_VERSION: v0.1.0

jobs:
generate:
Expand Down Expand Up @@ -31,7 +36,7 @@ jobs:
pushd docker/data
echo "Downloading ddn-assets"
wget https://github.com/hasura/ddn-assets/releases/download/v0.1.0/ddn-assets
wget https://github.com/hasura/ddn-assets/releases/download/$DDN_ASSETS_VERSION/ddn-assets
chmod +x ddn-assets
# TODO: get rid of this after fixing https://github.com/hasura/ddn-assets/issues/7
Expand All @@ -40,11 +45,11 @@ jobs:
echo "Running ddn-assets"
./ddn-assets generate
docker build -t ghcr.io/hasura/ndc-hub:data.$GITHUB_SHA . --push
docker build -t ghcr.io/hasura/ndc-hub:$DATA_TAG . --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
docker build --build-arg DATA_TAG=$DATA_TAG -t ghcr.io/hasura/ndc-hub:data-server.$GITHUB_SHA . --push
popd

0 comments on commit 4d7492e

Please sign in to comment.