Skip to content
Snippets Groups Projects
Commit cdeb6b78 authored by Sven Marcus's avatar Sven Marcus
Browse files

Try deploy to phoenix with ansible

parent 301c22a0
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ image: irmb/virtualfluids-python-deps ...@@ -3,6 +3,7 @@ image: irmb/virtualfluids-python-deps
stages: stages:
- build - build
- test - test
- deploy
- release - release
build: build:
...@@ -26,6 +27,20 @@ build: ...@@ -26,6 +27,20 @@ build:
- python3 setup.py install - python3 setup.py install
build_singularity_image:
stage: build
rules:
- if: $CI_COMMIT_TAG
artifacts:
paths:
- Containers/VirtualFluidsOpenMPI.sif
script:
- singularity build Containers/VirtualFluidsOpenMPI.sif Containers/VirtualFluidsOpenMPI.def
- ls -sh Containers/VirtualFluidsOpenMPI.sif
virtual_fluids_basics_test: virtual_fluids_basics_test:
stage: test stage: test
...@@ -51,19 +66,14 @@ test_python_bindings: ...@@ -51,19 +66,14 @@ test_python_bindings:
script: script:
- python3 -m unittest discover -s Python -v - python3 -m unittest discover -s Python -v
deploy_to_phoenix:
stage: deploy
build_singularity_image: before_script:
stage: build - pip3 install ansible
rules:
- if: $CI_COMMIT_TAG
artifacts:
paths:
- Containers/VirtualFluidsOpenMPI.sif
script: script:
- singularity build Containers/VirtualFluidsOpenMPI.sif Containers/VirtualFluidsOpenMPI.def - ansible-playbook -i ansible/hosts.txt ansible/playbook.yml
- ls -sh Containers/VirtualFluidsOpenMPI.sif
create_release: create_release:
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
......
[targets]
phoenix.hlr.rz.tu-bs.de
\ No newline at end of file
- hosts: targets
tasks:
- name: Copy VirtualFluids_dev folder
copy:
src: /VirtualFluids_dev
dest: ~/VirtualFluids_dev
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment