Skip to content

Commit ff24147

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

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/build-config.yml

Lines changed: 22 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,16 @@ jobs:
4344
- name: Pull SQRL Docker image
4445
run: docker pull datasqrl/cmd:v0.5.6
4546

47+
- name: Set up QEMU
48+
uses: docker/setup-qemu-action@v2
49+
- name: Set up Docker Buildx
50+
uses: docker/setup-buildx-action@v2
51+
- name: Login to Docker Hub
52+
uses: docker/login-action@v2
53+
with:
54+
username: ${{ secrets.DOCKER_USERNAME }}
55+
password: ${{ secrets.DOCKER_PASSWORD }}
56+
4657
- name: Run Healthcare Analytics Test
4758
if: ${{ github.event.inputs.example == 'healthcare' }}
4859
working-directory: ./healthcare-study-monitoring
@@ -72,19 +83,26 @@ jobs:
7283
continue-on-error: false
7384

7485
- name: Run Finance Analytics Test
75-
if: ${{ github.event.inputs.example == 'finance' }}
76-
working-directory: ./finance-credit-card-chatbot
86+
working-directory: finance-credit-card-chatbot/
7787
run: |
7888
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
7989
continue-on-error: false
8090

8191
- name: Run Finance Rewards Test
82-
if: ${{ github.event.inputs.example == 'finance' }}
83-
working-directory: ./finance-credit-card-chatbot
92+
working-directory: finance-credit-card-chatbot/
8493
run: |
8594
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
8695
continue-on-error: false
8796

97+
- name: Publish finance
98+
uses: docker/build-push-action@v3
99+
with:
100+
context: finance-credit-card-chatbot
101+
file: finance-credit-card-chatbot/Dockerfile
102+
push: true
103+
tags: datasqrl/examples:finance
104+
platforms: linux/amd64,linux/arm64
105+
88106
- name: Run Clickstream Recommendation Test
89107
if: ${{ github.event.inputs.example == 'recommendation' }}
90108
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)