This repository has been archived by the owner on Jan 3, 2022. It is now read-only.
forked from NOAA-ORR-ERD/OilLibrary
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
53 lines (48 loc) · 1.49 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
stages:
- test
- build
master:
stage: build
only:
- master
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t registry.orr.noaa.gov/gnome/oillibrary:master .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push registry.orr.noaa.gov/gnome/oillibrary:master
tags:
- shell
- build
develop:
stage: build
only:
- develop
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t registry.orr.noaa.gov/gnome/oillibrary:develop .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push registry.orr.noaa.gov/gnome/oillibrary:develop
tags:
- shell
- build
production:
stage: build
only:
- production
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t registry.orr.noaa.gov/gnome/oillibrary:production .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push registry.orr.noaa.gov/gnome/oillibrary:production
tags:
- shell
- build
test:
stage: test
image: registry.orr.noaa.gov/erd/centos-conda
script:
- conda install --file conda_requirements.txt
- python setup.py develop
- pytest --pyargs oil_library
tags:
- docker