Skip to content
Snippets Groups Projects
Commit 063cbd3a authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Merge branch 'add_ci' into 'master'

Add LOFAR storage manager and CI/CD

See merge request !1
parents 0aa6fc9c 8e01f6df
No related branches found
No related tags found
1 merge request!1Add LOFAR storage manager and CI/CD
Pipeline #46423 passed
stages: # List of stages for jobs, and their order of execution
- build
- integration_test
- deploy
variables:
DOCKER_TAG: "latest"
.step-with-docker-tag:
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
variables:
DOCKER_TAG: $CI_COMMIT_REF_SLUG
- if: '$CI_COMMIT_TAG != null'
variables:
DOCKER_TAG: $CI_COMMIT_TAG
- if: '$CI_COMMIT_TAG == null'
variables:
DOCKER_TAG: latest
build-container:
extends:
- .step-with-docker-tag
stage: build
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY_IMAGE/ms_tools:$DOCKER_TAG .
- docker push $CI_REGISTRY_IMAGE/ms_tools:$DOCKER_TAG
FROM astronrd/linc
COPY ./ /src
RUN cd /src && \
python3 -m pip install .
RUN lofar_sip_from_ms.py --help && \
lofar_sip_merge.py --help
\ No newline at end of file
...@@ -34,7 +34,8 @@ def collect_project_info(msin): ...@@ -34,7 +34,8 @@ def collect_project_info(msin):
_storage_writer_to_storage_manager = { _storage_writer_to_storage_manager = {
'DyscoStMan': 'DyscoStorageManager', 'DyscoStMan': 'DyscoStorageManager',
'TiledColumnStMan': 'CasaStorageManagers' 'TiledColumnStMan': 'CasaStorageManager',
'LofarStMan': 'LOFARStorageManager'
} }
_DAYS_IN_SEC = 3600 * 24 _DAYS_IN_SEC = 3600 * 24
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment