kopia lustrzana https://github.com/jupyterhub/repo2docker
rodzic
58cc9fcd4c
commit
67a19b0255
12
.travis.yml
12
.travis.yml
|
@ -29,18 +29,6 @@ script:
|
|||
after_success:
|
||||
- pip install codecov
|
||||
- pushd tests && codecov && popd
|
||||
jobs:
|
||||
include:
|
||||
- stage: deploy
|
||||
script: skip
|
||||
if: type = push AND (branch = master OR tag IS present)
|
||||
env:
|
||||
- REPO_TYPE=
|
||||
deploy:
|
||||
provider: script
|
||||
script: "./travis/travis-script.bash"
|
||||
on:
|
||||
repo: jupyter/repo2docker
|
||||
|
||||
env:
|
||||
matrix:
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
VERSION=$(git rev-parse --short HEAD)
|
||||
|
||||
IMAGE="jupyter/repo2docker:${VERSION}"
|
||||
docker build -t ${IMAGE} .
|
||||
|
||||
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
|
||||
docker login -u ${DOCKER_LOGIN} -p "${DOCKER_PASSWORD}"
|
||||
docker push ${IMAGE}
|
||||
echo "Pushed new repo2docker image: ${IMAGE}"
|
||||
if [[ ! -z "${TRAVIS_TAG}" ]]; then
|
||||
# also push tagged versions
|
||||
IMAGE_TAG="jupyter/repo2docker:${TRAVIS_TAG/v/}"
|
||||
docker tag "${IMAGE}" "${IMAGE_TAG}"
|
||||
docker push "${IMAGE_TAG}"
|
||||
echo "Pushed new repo2docker image: ${IMAGE_TAG}"
|
||||
fi
|
||||
fi
|
Ładowanie…
Reference in New Issue