Skip to content
Snippets Groups Projects
Commit 5b9e199c authored by Max Melchert's avatar Max Melchert
Browse files

docs: add instructions draft

parent 6d182ff7
Branches
No related tags found
No related merge requests found
> WIP
# GitLab
## Voraussetzung
> Ref: [GitLab CI mit `git` und VSCode](https://gitlab.cvh-server.de/ckaufmann/git-vorlesung/-/blob/master/slides-2/slides-2.pdf)
- Git initialisiert
- GitLab als `remote` eingerichtet
## Vorgehen
1. [CI/CD Settings](./-/settings/ci_cd)
- Timeout
- [projektseitig](./-/settings/ci_cd#js-general-pipeline-settings)
- serverseitig (Admin informieren)
- [Runners Settings](./-/settings/ci_cd#js-runners-settings)
- Server-Admin: Freigabe der GPU
- [Variables Settings](./-/settings/ci_cd#js-cicd-variables-settings)
2. `.gitlab-ci.yml` erstellen
```yaml
create-file:
stage: build
image: python
tags:
- gpu
script:
- |
cat <<EOF > test.py
with open('output.txt', 'w') as f:
f.write('hello world!\\n')
EOF
- python test.py
artifacts:
paths:
- output.txt
test-file-output:
stage: test
script:
- grep -q "hello world!" output.txt
dependencies:
- create-file
deploy-output:
stage: deploy
script:
- cp output.txt release.txt
artifacts:
paths:
- release.txt
dependencies:
- create-file
```
3. `$ git add <files>`
4. `$ git push`
5. [Pipelines](./-/pipelines) beobachten
- ![pipeline_badge](./badges/main/pipeline.svg)
6. [Artifacts](./-/artifacts) abrufen
# JupyterHub
# SSH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment