Skip to content

Commit 30103bf

Browse files
committed
chore: also build cubejs/cube image
1 parent 56e2239 commit 30103bf

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/image-build.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,32 @@ jobs:
3535
username: _json_key
3636
password: ${{ secrets.GCLOUD_SERVICE_KEY_FILE }}
3737

38-
- name: Build and push
38+
- name: Copy yarn.lock file
39+
run: cp yarn.lock packages/cubejs-docker
40+
41+
- name: Build and push (cubejs)
42+
uses: docker/build-push-action@v6
43+
env:
44+
DOCKER_BUILD_CHECKS_ANNOTATIONS: false
45+
DOCKER_BUILD_RECORD_UPLOAD: false
46+
DOCKER_BUILD_SUMMARY: true
47+
with:
48+
push: true # ${{ github.ref == 'refs/heads/gorgias' }}
49+
context: packages/cubejs-docker
50+
file: packages/cubejs-docker/latest.Dockerfile
51+
tags: |
52+
us-east1-docker.pkg.dev/gorgias-helpdesk-staging/container-images/cubejs:${{ github.sha }}
53+
us-central1-docker.pkg.dev/gorgias-revenue-staging/container-images/cubejs:${{ github.sha }}
54+
us-east1-docker.pkg.dev/gorgias-helpdesk-production/container-images/cubejs:${{ github.sha }}
55+
us-central1-docker.pkg.dev/gorgias-revenue-production/container-images/cubejs:${{ github.sha }}
56+
us-east1-docker.pkg.dev/gorgias-helpdesk-staging/container-images/cubejs:${{ env.TAG }}
57+
us-central1-docker.pkg.dev/gorgias-revenue-staging/container-images/cubejs:${{ env.TAG }}
58+
us-east1-docker.pkg.dev/gorgias-helpdesk-production/container-images/cubejs:${{ env.TAG }}
59+
us-central1-docker.pkg.dev/gorgias-revenue-production/container-images/cubejs:${{ env.TAG }}
60+
cache-from: type=inline,image-manifest=true
61+
cache-to: type=inline,image-manifest=true
62+
63+
- name: Build and push (cubestore)
3964
uses: docker/build-push-action@v6
4065
env:
4166
DOCKER_BUILD_CHECKS_ANNOTATIONS: false

0 commit comments

Comments
 (0)