Skip to content

Commit 072b525

Browse files
committed
Publish examples so they can be reused
1 parent 0772a4f commit 072b525

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/build-config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
- name: Pull SQRL Docker image
4444
run: docker pull datasqrl/cmd:v0.5.6
4545

46+
- name: Login to Docker Hub
47+
uses: docker/login-action@v2
48+
with:
49+
username: ${{ secrets.DOCKER_USERNAME }}
50+
password: ${{ secrets.DOCKER_PASSWORD }}
51+
4652
- name: Run Healthcare Analytics Test
4753
if: ${{ github.event.inputs.example == 'healthcare' }}
4854
working-directory: ./healthcare-study-monitoring
@@ -85,6 +91,16 @@ jobs:
8591
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test test -c package-rewards-local.json --snapshot snapshots-rewards
8692
continue-on-error: false
8793

94+
- name: Publish finance
95+
if: ${{ github.event.inputs.example == 'finance' }}
96+
uses: docker/build-push-action@v3
97+
with:
98+
context: finance-credit-card-chatbot
99+
file: finance-credit-card-chatbot/Dockerfile
100+
push: true
101+
tags: datasql/examples:finance
102+
platforms: linux/amd64,linux/arm64
103+
88104
- name: Run Clickstream Recommendation Test
89105
if: ${{ github.event.inputs.example == 'recommendation' }}
90106
working-directory: ./clickstream-ai-recommendation
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM datasqrl/cmd:v0.5.6
2+
3+
ENV TZ="UTC"
4+
5+
COPY . /build
6+
WORKDIR /build

0 commit comments

Comments
 (0)