Skip to content

Commit 3812f6b

Browse files
committed
Publish examples so they can be reused
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
1 parent 0772a4f commit 3812f6b

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

.github/workflows/build-config.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
env:
3636
TZ: 'America/Los_Angeles'
3737
steps:
38+
- uses: actions/checkout@v4
3839
- name: Setup Timezone
3940
uses: szenius/set-timezone@v1.1
4041
with:
@@ -43,6 +44,12 @@ jobs:
4344
- name: Pull SQRL Docker image
4445
run: docker pull datasqrl/cmd:v0.5.6
4546

47+
- name: Login to Docker Hub
48+
uses: docker/login-action@v2
49+
with:
50+
username: ${{ secrets.DOCKER_USERNAME }}
51+
password: ${{ secrets.DOCKER_PASSWORD }}
52+
4653
- name: Run Healthcare Analytics Test
4754
if: ${{ github.event.inputs.example == 'healthcare' }}
4855
working-directory: ./healthcare-study-monitoring
@@ -72,19 +79,26 @@ jobs:
7279
continue-on-error: false
7380

7481
- name: Run Finance Analytics Test
75-
if: ${{ github.event.inputs.example == 'finance' }}
76-
working-directory: ./finance-credit-card-chatbot
82+
working-directory: finance-credit-card-chatbot/
7783
run: |
7884
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test -c package-analytics-local.json --snapshot snapshots-analytics
7985
continue-on-error: false
8086

8187
- name: Run Finance Rewards Test
82-
if: ${{ github.event.inputs.example == 'finance' }}
83-
working-directory: ./finance-credit-card-chatbot
88+
working-directory: finance-credit-card-chatbot/
8489
run: |
8590
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
8691
continue-on-error: false
8792

93+
- name: Publish finance
94+
uses: docker/build-push-action@v3
95+
with:
96+
context: finance-credit-card-chatbot
97+
file: finance-credit-card-chatbot/Dockerfile
98+
push: true
99+
tags: datasql/examples:finance
100+
platforms: linux/amd64,linux/arm64
101+
88102
- name: Run Clickstream Recommendation Test
89103
if: ${{ github.event.inputs.example == 'recommendation' }}
90104
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)