Skip to content

Commit 1fce078

Browse files
authored
chore: build also over beta version (influxdata#11)
1 parent bd2ff6c commit 1fce078

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,18 @@ jobs:
7676
ruby-image:
7777
type: string
7878
default: &default-ruby-image "circleci/ruby:2.6-stretch"
79+
influxdb-repository:
80+
type: string
81+
default: "influxdb"
82+
influxdb-version:
83+
type: string
84+
default: "2.0.0-beta"
7985
docker:
8086
- image: << parameters.ruby-image >>
8187
- image: &influx-image quay.io/influxdb/influx:nightly
88+
environment:
89+
INFLUXDB_V2_REPOSITORY: << parameters.influxdb-repository >>
90+
INFLUXDB_V2_VERSION: << parameters.influxdb-version >>
8291
steps:
8392
- prepare
8493
- test:
@@ -118,6 +127,10 @@ workflows:
118127
ruby-image: "circleci/ruby:2.7-buster"
119128
- tests-ruby:
120129
name: ruby-2.6
130+
- tests-ruby:
131+
name: ruby-2.6-nightly
132+
influxdb-repository: "influx"
133+
influxdb-version: "nightly"
121134
- tests-ruby:
122135
name: ruby-2.5
123136
ruby-image: "circleci/ruby:2.5-stretch"
@@ -128,6 +141,7 @@ workflows:
128141
requires:
129142
- ruby-2.7
130143
- ruby-2.6
144+
- ruby-2.6-nightly
131145
- ruby-2.5
132146
- ruby-2.4
133147
filters:

bin/influxdb-restart.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ set -e
2626
DEFAULT_DOCKER_REGISTRY="quay.io/influxdb/"
2727
DOCKER_REGISTRY="${DOCKER_REGISTRY:-$DEFAULT_DOCKER_REGISTRY}"
2828

29-
DEFAULT_INFLUXDB_V2_VERSION="nightly"
29+
DEFAULT_INFLUXDB_V2_REPOSITORY="influxdb"
30+
DEFAULT_INFLUXDB_V2_VERSION="2.0.0-beta"
31+
INFLUXDB_V2_REPOSITORY="${INFLUXDB_V2_REPOSITORY:-$DEFAULT_INFLUXDB_V2_REPOSITORY}"
3032
INFLUXDB_V2_VERSION="${INFLUXDB_V2_VERSION:-$DEFAULT_INFLUXDB_V2_VERSION}"
31-
INFLUXDB_V2_IMAGE=${DOCKER_REGISTRY}influx:${INFLUXDB_V2_VERSION}
33+
INFLUXDB_V2_IMAGE=${DOCKER_REGISTRY}${INFLUXDB_V2_REPOSITORY}:${INFLUXDB_V2_VERSION}
3234

3335
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
3436

0 commit comments

Comments
 (0)