Skip to content

Commit 2a5aebb

Browse files
committed
Merge remote-tracking branch 'upstream/master' into vertica_driver
2 parents b50082a + 9423f46 commit 2a5aebb

File tree

774 files changed

+81300
-42042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

774 files changed

+81300
-42042
lines changed

.github/workflows/birdbox.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@ jobs:
5353
- name: Set Yarn version
5454
run: yarn policies set-version v1.22.5
5555
- name: Yarn install
56-
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
56+
uses: nick-invision/retry@v2
57+
env:
58+
CUBESTORE_SKIP_POST_INSTALL: true
59+
with:
60+
max_attempts: 3
61+
retry_on: error
62+
retry_wait_seconds: 15
63+
timeout_minutes: 20
64+
command: yarn install --frozen-lockfile
5765
- name: Build client
5866
run: yarn build
5967
- name: Lerna tsc
@@ -113,7 +121,15 @@ jobs:
113121
- name: Set Yarn version
114122
run: yarn policies set-version v1.22.5
115123
- name: Yarn install
116-
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
124+
uses: nick-invision/retry@v2
125+
env:
126+
CUBESTORE_SKIP_POST_INSTALL: true
127+
with:
128+
max_attempts: 3
129+
retry_on: error
130+
retry_wait_seconds: 15
131+
timeout_minutes: 20
132+
command: yarn install --frozen-lockfile
117133
- name: Build client
118134
run: yarn build
119135
- name: Lerna tsc
@@ -174,7 +190,15 @@ jobs:
174190
- name: Set Yarn version
175191
run: yarn policies set-version v1.22.5
176192
- name: Yarn install
177-
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
193+
uses: nick-invision/retry@v2
194+
env:
195+
CUBESTORE_SKIP_POST_INSTALL: true
196+
with:
197+
max_attempts: 3
198+
retry_on: error
199+
retry_wait_seconds: 15
200+
timeout_minutes: 20
201+
command: yarn install --frozen-lockfile
178202
- name: Lerna tsc
179203
run: yarn tsc
180204
- name: Birdbox

.github/workflows/examples-publish.yml

Lines changed: 75 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,81 @@ on:
1111

1212
jobs:
1313

14+
apollo-federation:
15+
runs-on: ubuntu-20.04
16+
timeout-minutes: 30
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- uses: pheel/path-watcher-action@v1
22+
id: modified
23+
with:
24+
paths: '.github/workflows/examples-publish.yml,.github/actions/deploy-example.sh,examples/apollo-federation-with-cube/*,examples/apollo-federation-with-cube/**'
25+
26+
- if: steps.modified.outputs.modified
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: 14.x
30+
31+
- if: steps.modified.outputs.modified
32+
run: .github/actions/deploy-example.sh
33+
env:
34+
EXAMPLE_SLUG: apollo-federation-with-cube
35+
EXAMPLE_FRONTEND_BUILD_SUBDIRECTORY: dist/
36+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
37+
EXAMPLE_CUBE_SKIP: 1
38+
39+
ksql:
40+
runs-on: ubuntu-20.04
41+
timeout-minutes: 30
42+
43+
steps:
44+
- uses: actions/checkout@v2
45+
46+
- uses: pheel/path-watcher-action@v1
47+
id: modified
48+
with:
49+
paths: '.github/workflows/examples-publish.yml,.github/actions/deploy-example.sh,examples/ksql/*,examples/ksql/**'
50+
51+
- if: steps.modified.outputs.modified
52+
uses: actions/setup-node@v1
53+
with:
54+
node-version: 14.x
55+
56+
- if: steps.modified.outputs.modified
57+
run: .github/actions/deploy-example.sh
58+
env:
59+
EXAMPLE_SLUG: ksql
60+
EXAMPLE_FRONTEND_BUILD_SUBDIRECTORY: build/
61+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
62+
EXAMPLE_CUBE_SKIP: 1
63+
64+
hasura-remote-schema:
65+
runs-on: ubuntu-20.04
66+
timeout-minutes: 30
67+
68+
steps:
69+
- uses: actions/checkout@v2
70+
71+
- uses: pheel/path-watcher-action@v1
72+
id: modified
73+
with:
74+
paths: '.github/workflows/examples-publish.yml,.github/actions/deploy-example.sh,examples/hasura-remote-schema-with-cube/*,examples/hasura-remote-schema-with-cube/**'
75+
76+
- if: steps.modified.outputs.modified
77+
uses: actions/setup-node@v1
78+
with:
79+
node-version: 14.x
80+
81+
- if: steps.modified.outputs.modified
82+
run: .github/actions/deploy-example.sh
83+
env:
84+
EXAMPLE_SLUG: hasura-remote-schema-with-cube
85+
EXAMPLE_FRONTEND_BUILD_SUBDIRECTORY: dist/
86+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
87+
EXAMPLE_CUBE_SKIP: 1
88+
1489
angular-dashboard:
1590
runs-on: ubuntu-20.04
1691
timeout-minutes: 30
@@ -619,31 +694,6 @@ jobs:
619694
EXAMPLE_CUBE_SKIP: 1
620695
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
621696

622-
slack-vibe:
623-
runs-on: ubuntu-20.04
624-
timeout-minutes: 30
625-
626-
steps:
627-
- uses: actions/checkout@v2
628-
629-
- uses: pheel/path-watcher-action@v1
630-
id: modified
631-
with:
632-
paths: '.github/workflows/examples-publish.yml,.github/actions/deploy-example.sh,examples/slack-vibe/*,examples/slack-vibe/**'
633-
634-
- if: steps.modified.outputs.modified
635-
uses: actions/setup-node@v1
636-
with:
637-
node-version: 14.x
638-
639-
- if: steps.modified.outputs.modified
640-
run: .github/actions/deploy-example.sh
641-
env:
642-
EXAMPLE_SLUG: slack-vibe
643-
EXAMPLE_CUBE_SKIP: 1
644-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
645-
EXAMPLE_FRONTEND_SUBDIRECTORY: 'frontend'
646-
647697
multitenancy-workshop:
648698
runs-on: ubuntu-20.04
649699
timeout-minutes: 30

.github/workflows/publish.yml

Lines changed: 101 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,18 @@ jobs:
4040
${{ runner.os }}-workspace-main-14.x-
4141
- name: Set Yarn version
4242
run: yarn policies set-version v1.22.5
43+
- name: Copy yarn.lock file
44+
run: cp yarn.lock packages/cubejs-docker
4345
- name: Yarn install
44-
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
46+
uses: nick-invision/retry@v2
47+
env:
48+
CUBESTORE_SKIP_POST_INSTALL: true
49+
with:
50+
max_attempts: 3
51+
retry_on: error
52+
retry_wait_seconds: 15
53+
timeout_minutes: 20
54+
command: yarn install --frozen-lockfile
4555
- name: Build Core Client libraries
4656
run: yarn build
4757
- name: Build other packages
@@ -108,8 +118,18 @@ jobs:
108118
run: npm install -g yarn
109119
- name: Set Yarn version
110120
run: yarn policies set-version v1.22.5
121+
- name: Copy yarn.lock file
122+
run: cp yarn.lock packages/cubejs-docker
111123
- name: Yarn install
112-
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
124+
uses: nick-invision/retry@v2
125+
env:
126+
CUBESTORE_SKIP_POST_INSTALL: true
127+
with:
128+
max_attempts: 3
129+
retry_on: error
130+
retry_wait_seconds: 15
131+
timeout_minutes: 20
132+
command: yarn install --frozen-lockfile
113133
- name: Build native
114134
env:
115135
CARGO_BUILD_TARGET: ${{ matrix.target }}
@@ -179,10 +199,18 @@ jobs:
179199
${{ runner.os }}-workspace-main-${{ matrix.node-version }}-
180200
- name: Set Yarn version
181201
run: yarn policies set-version v1.22.5
202+
- name: Copy yarn.lock file
203+
run: cp yarn.lock packages/cubejs-docker
182204
- name: Yarn install
205+
uses: nick-invision/retry@v2
183206
env:
184207
CUBESTORE_SKIP_POST_INSTALL: true
185-
run: yarn install --frozen-lockfile
208+
with:
209+
max_attempts: 3
210+
retry_on: error
211+
retry_wait_seconds: 15
212+
timeout_minutes: 20
213+
command: yarn install --frozen-lockfile
186214
- name: Build native
187215
run: cd packages/cubejs-backend-native && npm run native:build-release
188216
- name: Upload artifact
@@ -340,6 +368,76 @@ jobs:
340368
build-args: |
341369
IMAGE_VERSION=${{ steps.prep.outputs.version }}
342370
371+
docker-debian-jdk:
372+
needs: [npm, cubestore, native_linux]
373+
name: Debian with jdk docker image
374+
runs-on: ubuntu-20.04
375+
timeout-minutes: 30
376+
377+
steps:
378+
- name: Check out the repo
379+
uses: actions/checkout@v2
380+
- name: Repo metadata
381+
id: repo
382+
uses: actions/github-script@v3
383+
with:
384+
script: |
385+
const { data } = await github.repos.get(context.repo)
386+
const reg = new RegExp('📊 ', 'ug');
387+
data.description = data.description.replace(reg, "")
388+
return data
389+
- name: Prepare
390+
id: prep
391+
run: |
392+
DOCKER_IMAGE=cubejs/cube
393+
VERSION=noop
394+
if [ "${{ github.event_name }}" = "schedule" ]; then
395+
VERSION=nightly
396+
elif [[ $GITHUB_REF == refs/tags/* ]]; then
397+
VERSION=${GITHUB_REF#refs/tags/}
398+
fi
399+
TAGS="${DOCKER_IMAGE}:${VERSION}-jdk"
400+
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
401+
MINOR=${VERSION%.*}
402+
MAJOR=${MINOR%.*}
403+
TAGS="$TAGS,${DOCKER_IMAGE}:${MINOR}-jdk,${DOCKER_IMAGE}:${MAJOR}-jdk,${DOCKER_IMAGE}:jdk"
404+
elif [ "${{ github.event_name }}" = "push" ]; then
405+
TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}-jdk"
406+
fi
407+
echo ::set-output name=version::${VERSION}
408+
echo ::set-output name=tags::${TAGS}
409+
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
410+
- name: Login to DockerHub
411+
uses: docker/login-action@v1
412+
with:
413+
username: ${{ secrets.DOCKERHUB_USERNAME }}
414+
password: ${{ secrets.DOCKERHUB_TOKEN }}
415+
- name: Set up QEMU
416+
uses: docker/setup-qemu-action@v1
417+
- name: Set up Docker Buildx
418+
uses: docker/setup-buildx-action@v1
419+
with:
420+
version: v0.6.3
421+
- name: Push to Docker Hub
422+
uses: docker/build-push-action@v2
423+
with:
424+
context: ./packages/cubejs-docker
425+
file: ./packages/cubejs-docker/latest-debian-jdk.Dockerfile
426+
platforms: linux/amd64
427+
push: true
428+
tags: ${{ steps.prep.outputs.tags }}
429+
labels: |
430+
org.opencontainers.image.title=${{ fromJson(steps.repo.outputs.result).name }}
431+
org.opencontainers.image.description=${{ fromJson(steps.repo.outputs.result).description }}
432+
org.opencontainers.image.url=${{ fromJson(steps.repo.outputs.result).html_url }}
433+
org.opencontainers.image.source=${{ fromJson(steps.repo.outputs.result).clone_url }}
434+
org.opencontainers.image.version=${{ steps.prep.outputs.version }}
435+
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
436+
org.opencontainers.image.revision=${{ github.sha }}
437+
org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
438+
build-args: |
439+
IMAGE_VERSION=${{ steps.prep.outputs.version }}
440+
343441
docker-cubestore:
344442
name: Cube Store Docker
345443
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)