Skip to content
Snippets Groups Projects
Commit 4154711e authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add .gitlab-ci.yml file

- On each push to master the git clone is updated on the LCR workstations.
- Update README and convert it to markdown
parent 6adef3a0
No related branches found
No related tags found
No related merge requests found
Pipeline #5046 canceled
stages:
- deploy
deploy:
tags:
- docker
stage: deploy
image: registry.esss.lu.se/ics-docker/tower-cli:3.3
script:
- >
tower-cli job launch
-h torn.tn.esss.lu.se
-u ${ANSIBLE_AWX_USERNAME}
-p ${ANSIBLE_AWX_PASSWORD}
-J "deploy-cs-studio@lcr"
--tags csstudio-ess-opis
-e "csstudio_ess_opis_version=$CI_COMMIT_REF_NAME" --monitor
only:
- master
# ESS CS-Studio OPIs
This folder contains the validated and approved CS-Studio OPI files to be used at ESS to control the facility. This folder contains the validated and approved CS-Studio OPI files to be used at ESS to control the facility.
## Structure
Here the structure of this folder: Here the structure of this folder:
```
ess-opis/ ess-opis/
├── -common- ├── -common-
│ ├── devices │ ├── devices
...@@ -22,10 +27,12 @@ ess-opis/ ...@@ -22,10 +27,12 @@ ess-opis/
├── neutron-instruments ├── neutron-instruments
├── personnel-safety-systems ├── personnel-safety-systems
└── target-station └── target-station
```
Each -common- folder should be used to contain OPIs common to that level. Each -common- folder should be used to contain OPIs common to that level.
The folder has the following structure: The folder has the following structure:
```
-common-/ -common-/
├── devices ├── devices
│ ├── beam-magnets-and-deflector │ ├── beam-magnets-and-deflector
...@@ -52,9 +59,11 @@ The folder has the following structure: ...@@ -52,9 +59,11 @@ The folder has the following structure:
│ ├── vacuum │ ├── vacuum
│ └── water-cooling │ └── water-cooling
└── utilities └── utilities
```
Here the structure for the remaining folders in control-room and engineering: Here the structure for the remaining folders in control-room and engineering:
```
accelerator/ accelerator/
├── accelerator-to-target ├── accelerator-to-target
├── drift-tube-linac ├── drift-tube-linac
...@@ -135,4 +144,11 @@ target-station/ ...@@ -135,4 +144,11 @@ target-station/
├── target-systems ├── target-systems
├── ts-storage ├── ts-storage
└── tune-up-dump └── tune-up-dump
```
## Deployment
The ess-opis repository is cloned and mounted in CS-Studio by the [Ansible role](https://gitlab.esss.lu.se/ics-ansible-galaxy/ics-ans-role-cs-studio)
used to deploy CS-Studio.
Every time a push is done on the master branch, it triggers an Ansible job via AWX API to update the git repository on the LCR workstations.
Refer to the `.gitlab-ci.yml` file for the implementation.
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