#!/bin/bash
set -ev
mkdir -p target/docker-image
cp ./package.json ./target/docker-image/package.json
cp ./Dockerfile ./target/docker-image/Dockerfile
cp ./README.md ./target/docker-image/README.md
cp ./.dockerignore ./target/docker-image/.dockerignore
cp -r ./src ./target/docker-image/src
cp -r ./node_modules /target/docker-image/node_modules 2>/dev/null || :
cd target/docker-image
git init
git config user.name ${GH_NAME}
git config user.email ${GH_EMAIL}
git add .
git commit -m "Deployed to docker-image branch"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:docker-image > /dev/null 2>&1
#!/bin/bash
set -ev
mkdir -p target/docker-image
cp ./package.json ./target/docker-image/package.json
cp ./Dockerfile ./target/docker-image/Dockerfile
cp ./README.md ./target/docker-image/README.md
cp ./.dockerignore ./target/docker-image/.dockerignore
cp ./.travis.yml ./target/docker-image/.travis.yml
cp -r ./src ./target/docker-image/src
cp -r ./node_modules /target/docker-image/node_modules 2>/dev/null || :
cd target/docker-image
git init
git config user.name ${GH_NAME}
git config user.email ${GH_EMAIL}
git add .
git commit -m "Deployed to docker-image branch"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:docker-image > /dev/null 2>&1
Add .travis.yml to the deploy
Add .travis.yml to the deploy
