Skip to content
Snippets Groups Projects
Commit d8c30fa3 authored by Yung-Lin Huang (Cary)'s avatar Yung-Lin Huang (Cary)
Browse files

Restructured Gitlab CI files.

parent c57538f3
Branches
Tags
No related merge requests found
Pipeline #1520 passed
......@@ -18,53 +18,6 @@ variables:
Meshalyzer is a graphical program for display time dependent data on 3D finite elment meshes. <br>
Find the changelog [here](https://git.opencarp.org/openCARP/meshalyzer/blob/master/CHANGELOG.md).
build-pdf-manual:
stage: build
image: $PDF_MANUAL_MAKER_IMAGE
script:
- cd manual && pdflatex manual && pdflatex manual
artifacts:
paths:
- manual/manual.pdf
expire_in: 2 hour
release-pdf-manual:
stage: release
image: ubuntu:18.04
dependencies:
- build-pdf-manual
only:
- master
- tags
before_script:
# setup rsync
- apt-get update && apt-get install -y openssh-client rsync
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" | base64 -d | ssh-add -
- ssh-keyscan -H sulmass.scc.kit.edu > ~/.ssh/known_hosts
script:
- cp manual/manual.pdf $PDF_MANUAL
- "rsync -av --delete $PDF_MANUAL $PDF_MANUAL_DESTINATION/"
- >
if [ "$CI_COMMIT_TAG" != "" ]; then
cp manual/manual.pdf $PDF_MANUAL_RELEASE &&
rsync -av --delete $PDF_MANUAL_RELEASE $PDF_MANUAL_DESTINATION/
fi
release-create:
stage: release
image: python:3.7
only:
- tags
except:
- branches
before_script:
# setup pipelines
- git clone https://opencarp-admin:${PRIVATE_TOKEN}@git.opencarp.org/infrastructure/pipelines.git
- pip install -r pipelines/requirements.txt
script:
- >
python pipelines/scripts/create_release.py
$PDF_MANUAL_RELEASE_URL
include:
- local: .gitlab/ci/pdf.gitlab-ci.yml
- local: .gitlab/ci/release.gitlab-ci.yml
build-pdf-manual:
stage: build
image: $PDF_MANUAL_MAKER_IMAGE
script:
- cd manual && pdflatex manual && pdflatex manual
artifacts:
paths:
- manual/manual.pdf
expire_in: 2 hour
release-pdf-manual:
stage: release
image: ubuntu:18.04
dependencies:
- build-pdf-manual
only:
- master
- tags
before_script:
# setup rsync
- apt-get update && apt-get install -y openssh-client rsync
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" | base64 -d | ssh-add -
- ssh-keyscan -H sulmass.scc.kit.edu > ~/.ssh/known_hosts
script:
- cp manual/manual.pdf $PDF_MANUAL
- "rsync -av --delete $PDF_MANUAL $PDF_MANUAL_DESTINATION/"
- >
if [ "$CI_COMMIT_TAG" != "" ]; then
cp manual/manual.pdf $PDF_MANUAL_RELEASE &&
rsync -av --delete $PDF_MANUAL_RELEASE $PDF_MANUAL_DESTINATION/
fi
release-create:
stage: release
image: python:3.7
only:
- tags
except:
- branches
before_script:
# setup pipelines
- git clone https://opencarp-admin:${PRIVATE_TOKEN}@git.opencarp.org/infrastructure/pipelines.git
- pip install -r pipelines/requirements.txt
script:
- >
python pipelines/scripts/create_release.py
$PDF_MANUAL_RELEASE_URL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment