From cc1d2b54769cdcab5acde973077a7ad70dc58a2d Mon Sep 17 00:00:00 2001 From: Joel Lappalainen Date: Tue, 1 Dec 2020 15:39:01 +0200 Subject: [PATCH] Remove travis --- .travis.yml | 13 ------------- build-docker-image.sh | 37 ------------------------------------- 2 files changed, 50 deletions(-) delete mode 100644 .travis.yml delete mode 100755 build-docker-image.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 256b718..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: required - -branches: - only: - - master - - /20(1[7-9]|2[0-9])[0-1][0-9][0-3][0-9]/ - -services: docker - -language: bash - -script: - - ./build-docker-image.sh diff --git a/build-docker-image.sh b/build-docker-image.sh deleted file mode 100755 index 53fc96f..0000000 --- a/build-docker-image.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -ORG=${ORG:-hsldevcom} -DOCKER_IMAGE=gtfsrthttp2mqtt - -DOCKER_TAG="ci-${TRAVIS_COMMIT}" -# Set these environment variables -#DOCKER_USER= -#DOCKER_AUTH= - -function tagandpush { - docker tag $ORG/$DOCKER_IMAGE:$DOCKER_TAG $ORG/$DOCKER_IMAGE:$1 - docker push $ORG/$DOCKER_IMAGE:$1 -} - -if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then - - docker login -u $DOCKER_USER -p $DOCKER_AUTH - if [ "$TRAVIS_TAG" ];then - echo "processing release $TRAVIS_TAG" - #release do not rebuild, just tag - docker pull $ORG/$DOCKER_IMAGE:$DOCKER_TAG - tagandpush "prod" - else - if [ "$TRAVIS_BRANCH" = "master" ]; then - echo "processing master build $TRAVIS_COMMIT" - #master branch, build and tag as latest - docker build --tag="$ORG/$DOCKER_IMAGE:$DOCKER_TAG" . - docker push $ORG/$DOCKER_IMAGE:$DOCKER_TAG - tagandpush "latest" - else - exit 0 - fi - fi -else - echo "processing pr $TRAVIS_PULL_REQUEST" - docker build --tag="$ORG/$DOCKER_IMAGE:$DOCKER_TAG" . -fi \ No newline at end of file