17 lines
516 B
Bash
Executable File
17 lines
516 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $ROOT/docker
|
|
mkdir tmp
|
|
cd tmp
|
|
git clone "https://${GIT_TOKEN}@github.com/${GIT_ORG}/${GIT_REPO}"
|
|
cd $GIT_REPO
|
|
cp $ROOT/docker/install.sh $WEB/requirements.txt .
|
|
docker-compose -f docker-compose.build.yml build
|
|
|
|
docker tag ottertune-base "${DOCKER_REPO}:base"
|
|
docker tag ottertune-web "${DOCKER_REPO}:web"
|
|
docker tag ottertune-driver "${DOCKER_REPO}:driver"
|
|
docker tag ottertune-driver-internal "${DOCKER_REPO}:driver-internal"
|
|
echo "$DOCKER_PASSWD" | docker login -u "$DOCKER_USER" --password-stdin
|
|
|