This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 29c49bba authored by Eduard Frankford's avatar Eduard Frankford
Browse files

try ubuntu image

parent c610be66
5 merge requests!132Bringing July Release to production,!128Fixing #315 and #319,!126Continous Deployment with E2E Tests,!125Publish docker image,!119Publish docker image
image: ubuntu:latest image: jhipster/jhipster:latest
cache: cache:
key: '$CI_COMMIT_REF_NAME' key: '$CI_COMMIT_REF_NAME'
...@@ -16,16 +16,6 @@ stages: ...@@ -16,16 +16,6 @@ stages:
before_script: before_script:
- export NG_CLI_ANALYTICS="false" - export NG_CLI_ANALYTICS="false"
- export MAVEN_USER_HOME=`pwd`/.maven - export MAVEN_USER_HOME=`pwd`/.maven
- whoami
- apt-get update -qy
- apt-get install -y rsync openssh-client
- mkdir -p ~/.ssh
- echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
- chmod 700 ~/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- echo "Hello world"
# pmdCheckstylePrettierLint: # pmdCheckstylePrettierLint:
# stage: lint # stage: lint
...@@ -140,6 +130,17 @@ deploy: ...@@ -140,6 +130,17 @@ deploy:
stage: deploy stage: deploy
# dependencies: # dependencies:
# - 'docker-push' # - 'docker-push'
image: ubuntu
script: script:
- whoami
- apt-get update -qy
- apt-get install -y rsync openssh-client
- mkdir -p ~/.ssh
- echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
- chmod 700 ~/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- echo "Hello world"
- ssh contDeploy@codeability-austria -p 1022 -f "(cd /home/michael/gitsearch git pull && cd src/main/docker/; GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build gitsearch-app)" - ssh contDeploy@codeability-austria -p 1022 -f "(cd /home/michael/gitsearch git pull && cd src/main/docker/; GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build gitsearch-app)"
when: always when: always
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