clean up gitlab ci config
This commit is contained in:
parent
c13f6500d0
commit
a0fbf61664
2 changed files with 21 additions and 32 deletions
11
.ci/configure_git.sh
Normal file
11
.ci/configure_git.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
|
||||||
|
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
chmod 700 ~/.ssh
|
||||||
|
|
||||||
|
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
||||||
|
chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
git config --global user.email "git@maximilian-kessler.de"
|
||||||
|
git config --global user.name "Maximilian Keßler (via gitlab runner)"
|
|
@ -1,46 +1,25 @@
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages:
|
||||||
- get
|
- get
|
||||||
- build
|
- build
|
||||||
- pages
|
- pages
|
||||||
|
|
||||||
|
get-build-repo:
|
||||||
get-build-repo: # This job runs in the build stage, which runs first.
|
|
||||||
stage: get
|
stage: get
|
||||||
before_script:
|
before_script:
|
||||||
- eval $(ssh-agent -s)
|
- .ci/configure_git.sh
|
||||||
- echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
|
|
||||||
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- chmod 700 ~/.ssh
|
|
||||||
|
|
||||||
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- git config --global user.email "git@maximilian-kessler.de"
|
|
||||||
- git config --global user.name "Maximilian Keßler (via gitlab runner)"
|
|
||||||
script:
|
script:
|
||||||
- echo "Getting old Build repo..."
|
- echo "Getting old Build repo..."
|
||||||
- .ci/get_build_repo_from_origin.sh
|
- .ci/get_build_repo_from_origin.sh
|
||||||
tags:
|
|
||||||
- latex
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/*
|
- build/
|
||||||
|
tags:
|
||||||
|
- latex
|
||||||
|
|
||||||
build-packages: # This job runs in the deploy stage.
|
build-packages:
|
||||||
stage: build # It only runs when *both* jobs in the test stage complete successfully.
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- eval $(ssh-agent -s)
|
- .ci/configure_git.sh
|
||||||
- echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
|
|
||||||
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- chmod 700 ~/.ssh
|
|
||||||
|
|
||||||
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- git config --global user.email "git@maximilian-kessler.de"
|
|
||||||
- git config --global user.name "Maximilian Keßler (via gitlab runner)"
|
|
||||||
script:
|
script:
|
||||||
- echo "Building packages incrementally..."
|
- echo "Building packages incrementally..."
|
||||||
- sh .ci/ci_build.sh
|
- sh .ci/ci_build.sh
|
||||||
|
@ -48,11 +27,10 @@ build-packages: # This job runs in the deploy stage.
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/*
|
- build/
|
||||||
tags:
|
tags:
|
||||||
- latex
|
- latex
|
||||||
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: pages
|
stage: pages
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in a new issue