49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
stages:
|
|
- hello
|
|
- build
|
|
|
|
|
|
job1:
|
|
stage: hello
|
|
image: debian:latest
|
|
tags:
|
|
- hottis
|
|
- linux
|
|
- docker
|
|
script:
|
|
- echo "Hallo"
|
|
- echo "Welt"
|
|
- whoami
|
|
|
|
|
|
build:
|
|
stage: build
|
|
image: registry.gitlab.com/wolutator/build-env-msp430:latest
|
|
tags:
|
|
- hottis
|
|
- linux
|
|
- docker
|
|
only:
|
|
refs:
|
|
- master
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: none
|
|
before_script:
|
|
- echo "Prepare ssh environment"
|
|
- eval $(ssh-agent -s)
|
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
|
- mkdir -p ~/.ssh
|
|
- chmod 700 ~/.ssh
|
|
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
|
- chmod 644 ~/.ssh/known_hosts
|
|
- ssh git@gitlab.com
|
|
- echo "Preparing ssh environment done"
|
|
script:
|
|
- git submodule init
|
|
- git submodule update
|
|
- whoami
|
|
- pwd
|
|
- make clean
|
|
- make all
|
|
|