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
|
||||
- build
|
||||
- pages
|
||||
|
||||
|
||||
get-build-repo: # This job runs in the build stage, which runs first.
|
||||
get-build-repo:
|
||||
stage: get
|
||||
before_script:
|
||||
- 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)"
|
||||
- .ci/configure_git.sh
|
||||
script:
|
||||
- echo "Getting old Build repo..."
|
||||
- .ci/get_build_repo_from_origin.sh
|
||||
tags:
|
||||
- latex
|
||||
artifacts:
|
||||
paths:
|
||||
- build/*
|
||||
- build/
|
||||
tags:
|
||||
- latex
|
||||
|
||||
build-packages: # This job runs in the deploy stage.
|
||||
stage: build # It only runs when *both* jobs in the test stage complete successfully.
|
||||
build-packages:
|
||||
stage: build
|
||||
before_script:
|
||||
- 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)"
|
||||
- .ci/configure_git.sh
|
||||
script:
|
||||
- echo "Building packages incrementally..."
|
||||
- sh .ci/ci_build.sh
|
||||
|
@ -48,11 +27,10 @@ build-packages: # This job runs in the deploy stage.
|
|||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
artifacts:
|
||||
paths:
|
||||
- build/*
|
||||
- build/
|
||||
tags:
|
||||
- latex
|
||||
|
||||
|
||||
pages:
|
||||
stage: pages
|
||||
artifacts:
|
||||
|
|
Loading…
Reference in a new issue