Commit 92910c26 authored by James Runnalls's avatar James Runnalls
Browse files

Update .gitlab-ci.yml

parent 6f08476a
Pipeline #7160 passed with stage
in 39 seconds
image: docker:stable
# renku: v1.dev20180723
before_script:
- apk-get update -qq
- apk-get install -qq git
# Setup SSH deploy keys
- 'which ssh-agent || ( apk-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
variables:
GIT_STRATEGY: fetch
GIT_SSL_NO_VERIFY: "true"
GIT_SUBMODULE_STRATEGY: recursive
GIT_LFS_SKIP_SMUDGE: 1
deploy_staging:
type: deploy
environment:
name: staging
url: https://renkulab.io/gitlab/data-lakes/
stages:
- build
image_build:
stage: build
image: docker:stable
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
script:
- ssh centos@148.187.97.230
only:
- master
\ No newline at end of file
- CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
- docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
tags:
- image-build
\ No newline at end of file
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