Commit 5dff1691 by Juha

Removed kontena deployment due to job refactoring

parent 8c1480d1
Pipeline #9914356 passed with stage
......@@ -12,17 +12,8 @@ branches:
env:
global:
- NODE_ENV=continuous_integration
- SSL_IGNORE_ERRORS=true
- KONTENA_VERSION_VARIABLE=AUTH_SERVICE_VERSION
- KONTENA_DEPLOYMENT_DESCRIPTOR=kontena-testing.yml
# DOCKER_HUB_REPO
- secure: RnjPRFanmnY6QXypNqEiez3AwJngzqHNVPr3UTz26m/XKwyxj444gXzXmpWZdrAe66vhsUt1nRp1a2Go+4EKMNz3EMlZB7ukNrVyoIRTceAVnzMPwGVZGUctL48P+DgZBlpX/o8NFNi7mX7Qxtsn3sLOyqZCSUdCcQJ/femHNcU3gKJAb3INOuGdgLP1KqEY/NNbPA0T7w9tj4q7OQZul0PmgLXwKth2DXmdy5RB/mtxb2O3m6DKlSwi4UGBesddGXz0gGsi8LNzz/22BPpaY3gfCrqfFEeACA1VgcKknO6t/o25U0fIb/hlAD+Q7xcId579Yu+S3nNzJQCIl7LDKg==
# KONTENA_MASTER_URL
- secure: BvV0TNY/UT9w6RmE4LcgSnC+vhSCY4RwuXzc90un6bDPJdkztvnDOupZm5QpgfJkEUJhktolEk1A1Ap1HKgZj9k4AQLxIDjDXHcMA6BLO2Npi8GBsM0TRBJ8pzwhTN4yt1Lzfn2Imy1ao9Tklfx3CJGpohdWtjlC7sDZSOJd17gcG4YN/sBeOlKgg8HSX6P81gXWju99dW5mTKJk1rvqQyK1MXawPW5GjSOqTrgdX+IuqH1pG4epDbM3kL1kXW8twwC1CD+r8tU785NH2Et74t0TMxkEviStUHUjW8VZMa9sZs+LroEcxezFZz+xcmNx6Y16z872SmFJuaQp/107kw==
# KONTENA_LOGIN_TOKEN
- secure: FnIYGmfZVB5z58vVT6y97O3Z0mABHXdE1WIEUOQM0BR5ChaJhazgBqStQKUtEQRZcEP+0NrueMsJ9z0DL/104HrOeBufZAZWw/19FLnav+d9lYnASVDPhSNE1ol97HOGflhEp7KcLMTyn5kXgSP8ofCGfDyajpt+OKboV8jl/1gJdqIL6rRQXT/jDnaYHXSPoDQggiaHfHdNnGHNDbGoON9EZfEXQ2mOH/PRfiT4fE8mfTUmTKCqCQ7DASC7C1yYgT73B4ACVmqMLtuEQgQriV3FdY1tTpCHKZtBLwv9qxi2/8VuAmwM4nToQHei3BjWwlfHNUkCsSg+kPYnXuURJA==
# KONTENA_GRID
- secure: QV6iRP1Eq3wHOvfDlEvoAc5P5R4l51UtEXlhe8A3tR4pV/5MCVHjCDEeEvLnUcEG8L7e3SES7IO+F6bP//igcoEWGO5Q7u98oFsCxyFbrFftDFBlRFeP6OTGWWc6zOzNnoUN1sdg8VqGu3eCyUlWVIQvfL9lQhVLY5PGxmXy+JcpX4Y10bel5A7zyca9uzX5paf4O32/4i+vV7sEhHrrYGNyV6HTWlZegKrgeHZHoVKIQhdrqU88dDNnG1ICRuDPt6BYFex+3JrxDjpC5wp4UAYQ1H6mPlSA7VYfaGlhMOBVs2XkZhr4zwIDHdWyj/xdobO32Njb5vJRJeRiGnfQCw==
build:
ci:
......@@ -33,23 +24,9 @@ build:
- npm test
on_success:
# Ruby is needed for kontena-cli
- if [ "$PULL_REQUEST" == "false" ] ; then add-apt-repository ppa:brightbox/ruby-ng ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then apt-get update ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then apt-get install ruby2.3 ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then ruby -v ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then gem install kontena-cli ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then kontena version ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then docker build -f Dockerfile.prod -t $DOCKER_HUB_REPO:$BUILD_NUMBER . ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then docker push $DOCKER_HUB_REPO:$BUILD_NUMBER ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then git clone https://juhakarna@gitlab.com/article-projects/deployment-scripts.git ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then kontena master login --token $KONTENA_LOGIN_TOKEN --grid $KONTENA_GRID $KONTENA_MASTER_URL ; fi
- if [ "$PULL_REQUEST" == "false" ] ; then kontena vault update -u $KONTENA_VERSION_VARIABLE $BUILD_NUMBER ; fi
- if [ "$PULL_REQUEST" == "false" ] && kontena stack list | grep -q article-project ; then kontena stack upgrade article-project ./deployment-scripts/$KONTENA_DEPLOYMENT_DESCRIPTOR ; fi
- if [ "$PULL_REQUEST" == "false" ] && ! kontena stack list | grep -q article-project ; then kontena stack install ./deployment-scripts/$KONTENA_DEPLOYMENT_DESCRIPTOR ; fi
- if [ "$IS_PULL_REQUEST" == "false" ] ; then docker build -f Dockerfile.prod -t $DOCKER_HUB_REPO:$BUILD_NUMBER . ; fi
- if [ "$IS_PULL_REQUEST" == "false" ] ; then docker push $DOCKER_HUB_REPO:$BUILD_NUMBER ; fi
- if [ "$IS_PULL_REQUEST" == "false" ]; then echo "versionName=$BUILD_NUMBER" >> $JOB_STATE/auth-image-resource.env ; fi
integrations:
hub:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment