Skip to content

Commit fe1b2a6

Browse files
committed
reenable circleci for now
1 parent 9dcb111 commit fe1b2a6

File tree

2 files changed

+44
-48
lines changed

2 files changed

+44
-48
lines changed

.ci/docker_build

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/bin/bash
22

3-
# This script only needs to run on the main Redash repo
3+
# This script only needs to run on the main Redash repo*
4+
# (modified for Mozilla fork)
5+
VERSION_TAG="$MOZILLA_VERSION"
46

5-
if [ "${GITHUB_REPOSITORY}" != "getredash/redash" ]; then
7+
if [ "${GITHUB_REPOSITORY}" != "mozilla/redash" ]; then
68
echo "Skipping image build for Docker Hub, as this isn't the main Redash repository"
79
exit 0
810
fi
@@ -18,22 +20,16 @@ if [ "x${DOCKER_USER}" = "x" ] || [ "x${DOCKER_PASS}" = "x" ]; then
1820
fi
1921

2022
set -e
21-
VERSION=$(jq -r .version package.json)
22-
VERSION_TAG="$VERSION.b${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}"
2323

2424
export DOCKER_BUILDKIT=1
2525
export COMPOSE_DOCKER_CLI_BUILD=1
2626

2727
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}"
2828

29-
DOCKERHUB_REPO="redash/redash"
30-
DOCKER_TAGS="-t redash/redash:preview -t redash/preview:${VERSION_TAG}"
31-
3229
# Build the docker container
33-
docker build --build-arg install_groups="main,all_ds,dev" ${DOCKER_TAGS} .
30+
docker build --build-arg install_groups="main,all_ds,dev" ${DOCKERHUB_REPO}:${VERSION_TAG} .
3431

3532
# Push the container to the preview build locations
36-
docker push "${DOCKERHUB_REPO}:preview"
37-
docker push "redash/preview:${VERSION_TAG}"
33+
docker push "${DOCKERHUB_REPO}:${VERSION_TAG}"
3834

3935
echo "Built: ${VERSION_TAG}"

.circleci/config.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -151,41 +151,41 @@ workflows:
151151
version: 2
152152
build:
153153
jobs:
154-
# - backend-lint:
155-
# filters:
156-
# tags:
157-
# only: /^m[0-9]+(\.[0-9]+)?$/
158-
# - backend-unit-tests:
159-
# filters:
160-
# tags:
161-
# only: /^m[0-9]+(\.[0-9]+)?$/
162-
# requires:
163-
# - backend-lint
164-
# - frontend-lint:
165-
# filters:
166-
# tags:
167-
# only: /^m[0-9]+(\.[0-9]+)?$/
168-
# - frontend-unit-tests:
169-
# filters:
170-
# tags:
171-
# only: /^m[0-9]+(\.[0-9]+)?$/
172-
# requires:
173-
# - backend-lint
174-
# - frontend-lint
175-
# - build-docker-image:
176-
# requires:
177-
# - backend-unit-tests
178-
# - frontend-unit-tests
179-
# filters:
180-
# branches:
181-
# only:
182-
# - master
183-
# - build-docker-image-tag:
184-
# requires:
185-
# - backend-unit-tests
186-
# - frontend-unit-tests
187-
# filters:
188-
# branches:
189-
# ignore: /.*/
190-
# tags:
191-
# only: /^m[0-9]+(\.[0-9]+)?$/
154+
- backend-lint:
155+
filters:
156+
tags:
157+
only: /^m[0-9]+(\.[0-9]+)?$/
158+
- backend-unit-tests:
159+
filters:
160+
tags:
161+
only: /^m[0-9]+(\.[0-9]+)?$/
162+
requires:
163+
- backend-lint
164+
- frontend-lint:
165+
filters:
166+
tags:
167+
only: /^m[0-9]+(\.[0-9]+)?$/
168+
- frontend-unit-tests:
169+
filters:
170+
tags:
171+
only: /^m[0-9]+(\.[0-9]+)?$/
172+
requires:
173+
- backend-lint
174+
- frontend-lint
175+
- build-docker-image:
176+
requires:
177+
- backend-unit-tests
178+
- frontend-unit-tests
179+
filters:
180+
branches:
181+
only:
182+
- master
183+
- build-docker-image-tag:
184+
requires:
185+
- backend-unit-tests
186+
- frontend-unit-tests
187+
filters:
188+
branches:
189+
ignore: /.*/
190+
tags:
191+
only: /^m[0-9]+(\.[0-9]+)?$/

0 commit comments

Comments
 (0)