Select Git revision
instructions.draft.md

Max Melchert authored
instructions.draft.md 1.43 KiB
WIP
GitLab
Voraussetzung
- Git initialisiert
- GitLab als
remote
eingerichtet
Vorgehen
-
CI/CD Settings
- Timeout
- projektseitig
- serverseitig (Admin informieren)
-
Runners Settings
- Server-Admin: Freigabe der GPU
- Variables Settings
- Timeout
-
.gitlab-ci.yml
erstellencreate-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
$ git add <files>
$ git push
- Pipelines beobachten
- Artifacts abrufen