Skip to content

Commit 12cbbb6

Browse files
committed
attempt to fix native build/test in docker-dev CI
1 parent 7c5c1ca commit 12cbbb6

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/push.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -556,17 +556,6 @@ jobs:
556556
df -h
557557
- name: Checkout
558558
uses: actions/checkout@v4
559-
- name: Set up QEMU
560-
uses: docker/setup-qemu-action@v3
561-
- name: Build image
562-
uses: docker/build-push-action@v6
563-
timeout-minutes: 30
564-
with:
565-
context: .
566-
file: ./packages/cubejs-docker/${{ matrix.dockerfile }}
567-
platforms: linux/amd64
568-
push: true
569-
tags: localhost:5000/cubejs/cube:${{ matrix.tag }}
570559
- name: Use Node.js 20.x
571560
uses: actions/setup-node@v4
572561
with:
@@ -594,12 +583,28 @@ jobs:
594583
retry_wait_seconds: 15
595584
timeout_minutes: 20
596585
command: yarn install --frozen-lockfile
597-
- name: Build native (no python)
598-
run: cd packages/cubejs-backend-native && npm run native:build-release
599586
- name: Build client
600587
run: yarn build
601588
- name: Lerna tsc
602589
run: yarn tsc
590+
- name: Build native (no python)
591+
run: cd packages/cubejs-backend-native && npm run native:build-release
592+
- name: Set up QEMU
593+
uses: docker/setup-qemu-action@v3
594+
# current .dockerignore prevents use of native build
595+
- name: Unignore native from .dockerignore
596+
run: |
597+
grep -v -E "packages/cubejs-backend-native/((native)|(index.node))" .dockerignore > .dockerignore.tmp
598+
mv .dockerignore.tmp .dockerignore
599+
- name: Build image
600+
uses: docker/build-push-action@v6
601+
timeout-minutes: 30
602+
with:
603+
context: .
604+
file: ./packages/cubejs-docker/${{ matrix.dockerfile }}
605+
platforms: linux/amd64
606+
push: true
607+
tags: localhost:5000/cubejs/cube:${{ matrix.tag }}
603608
- name: Testing CubeJS (container mode) via BirdBox
604609
run: |
605610
cd packages/cubejs-testing/

0 commit comments

Comments
 (0)