forked from getredash/redash
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:getredash/redash
- Loading branch information
Showing
75 changed files
with
1,347 additions
and
998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
client/.tmp/ | ||
client/dist/ | ||
node_modules/ | ||
viz-lib/node_modules/ | ||
.tmp/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Preview Image | ||
on: | ||
push: | ||
tags: | ||
- '*-dev' | ||
|
||
env: | ||
NODE_VERSION: 18 | ||
|
||
jobs: | ||
build-skip-check: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
skip: ${{ steps.skip-check.outputs.skip }} | ||
steps: | ||
- name: Skip? | ||
id: skip-check | ||
run: | | ||
if [[ "${{ vars.DOCKER_USER }}" == '' ]]; then | ||
echo 'Docker user is empty. Skipping build+push' | ||
echo skip=true >> "$GITHUB_OUTPUT" | ||
elif [[ "${{ secrets.DOCKER_PASS }}" == '' ]]; then | ||
echo 'Docker password is empty. Skipping build+push' | ||
echo skip=true >> "$GITHUB_OUTPUT" | ||
else | ||
echo 'Docker user and password are set and branch is `master`.' | ||
echo 'Building + pushing `preview` image.' | ||
echo skip=false >> "$GITHUB_OUTPUT" | ||
fi | ||
build-docker-image: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- build-skip-check | ||
if: needs.build-skip-check.outputs.skip == 'false' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
ref: ${{ github.event.push.after }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'yarn' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm install --global --force yarn@1.22.22 | ||
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
|
||
- name: Set version | ||
id: version | ||
run: | | ||
set -x | ||
.ci/update_version | ||
VERSION_TAG=$(jq -r .version package.json) | ||
echo "VERSION_TAG=$VERSION_TAG" >> "$GITHUB_OUTPUT" | ||
- name: Build and push preview image to Docker Hub | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
tags: | | ||
redash/redash:preview | ||
redash/preview:${{ steps.version.outputs.VERSION_TAG }} | ||
context: . | ||
build-args: | | ||
test_all_deps=true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
platforms: linux/amd64 | ||
env: | ||
DOCKER_CONTENT_TRUST: true | ||
|
||
- name: "Failure: output container logs to console" | ||
if: failure() | ||
run: docker compose logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.20.1 | ||
v18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.