Skip to content

Commit f47b826

Browse files
authored
chore(ci): Unignore native build during docker build for master (#9139)
1 parent 3822107 commit f47b826

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/master.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ jobs:
110110
password: ${{ secrets.DOCKERHUB_TOKEN }}
111111
- name: Set up QEMU
112112
uses: docker/setup-qemu-action@v3
113+
# current .dockerignore prevents use of native build
114+
- name: Unignore native from .dockerignore
115+
run: |
116+
grep -v -E "packages/cubejs-backend-native/((native)|(index.node))" .dockerignore > .dockerignore.tmp
117+
mv .dockerignore.tmp .dockerignore
113118
- name: Push to Docker Hub
114119
uses: docker/build-push-action@v6
115120
with:

.github/workflows/push.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ jobs:
106106
command: yarn install --frozen-lockfile
107107
- name: Lerna tsc
108108
run: yarn tsc
109-
- name: Build native (no python)
110-
run: cd packages/cubejs-backend-native && npm run native:build-release
111109
- name: Build client
112110
run: yarn build
113111
- name: Build cubejs-backend-native (with Python)
@@ -446,6 +444,9 @@ jobs:
446444
command: yarn install --frozen-lockfile
447445
- name: Lerna tsc
448446
run: yarn tsc
447+
- name: Build cubejs-backend-native (without Python)
448+
run: yarn run native:build-release
449+
working-directory: ./packages/cubejs-backend-native
449450
- name: Run Integration tests for ${{ matrix.db }} matrix
450451
uses: nick-fields/retry@v3
451452
with:
@@ -682,8 +683,9 @@ jobs:
682683
run: yarn build
683684
- name: Lerna tsc
684685
run: yarn tsc
685-
- name: Build native (no python)
686-
run: cd packages/cubejs-backend-native && npm run native:build-release
686+
- name: Build cubejs-backend-native (without Python)
687+
run: yarn run native:build-release
688+
working-directory: ./packages/cubejs-backend-native
687689
- name: Set up QEMU
688690
uses: docker/setup-qemu-action@v3
689691
# current .dockerignore prevents use of native build

0 commit comments

Comments
 (0)