Commit 340be852 authored by Sintal's avatar Sintal
Browse files

Update .gitlab-ci.yml

parent 65816b69
image: ubuntu image: ubuntu
build-job: before_script:
stage: build - echo "Hello, $GITLAB_USER_LOGIN!"
script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- echo "Hello, $GITLAB_USER_LOGIN!" - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
test-job1: - mkdir -p ~/.ssh
stage: test - chmod 700 ~/.ssh
script: - ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts
- echo "this job tests fork1" - chmod 644 ~/.ssh/known_hosts
test-job2: Test SSH:
stage: test script:
script: - ssh $USER_NAME "./scriptPull/pull.sh"
- echo "this job tests fork2"
deploy-prod:
stage: deploy
script:
- echo "this job tests fork3"
Supports Markdown
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