forked from snowflakedb/snowflake-connector-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path_init.sh
executable file
·34 lines (27 loc) · 1.08 KB
/
_init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash -e
export PLATFORM=$(echo $(uname) | tr '[:upper:]' '[:lower:]')
export INTERNAL_REPO=nexus.int.snowflakecomputing.com:8086
if [[ -z "$GITHUB_ACTIONS" ]]; then
# Use the internal Docker Registry
export DOCKER_REGISTRY_NAME=$INTERNAL_REPO/docker
export WORKSPACE=${WORKSPACE:-/tmp}
else
# Use Docker Hub
export DOCKER_REGISTRY_NAME=snowflakedb
export WORKSPACE=$GITHUB_WORKSPACE
fi
export DRIVER_NAME=nodejs
# Build images
BUILD_IMAGE_VERSION=2
# Test Images
TEST_IMAGE_VERSION=2
declare -A BUILD_IMAGE_NAMES=(
[$DRIVER_NAME-centos6-default]=$DOCKER_REGISTRY_NAME/client-$DRIVER_NAME-centos6-default-build:$BUILD_IMAGE_VERSION
)
export BUILD_IMAGE_NAMES
declare -A TEST_IMAGE_NAMES=(
[$DRIVER_NAME-centos6-default]=$DOCKER_REGISTRY_NAME/client-$DRIVER_NAME-centos6-default-test:$BUILD_IMAGE_VERSION
[$DRIVER_NAME-centos7-node12]=$DOCKER_REGISTRY_NAME/client-$DRIVER_NAME-centos7-node12-test:$BUILD_IMAGE_VERSION
[$DRIVER_NAME-centos7-fips]=$DOCKER_REGISTRY_NAME/client-$DRIVER_NAME-centos7-fips-test:$BUILD_IMAGE_VERSION
)
export TEST_IMAGE_NAMES