-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
39 lines (37 loc) · 1.34 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
variables:
DOCKER_REGISTRY: $DOCKER_REGISTRY
AWS_DEFAULT_REGION: $AWS_REGION
stages:
- deploy
build-containers:
tags:
- shell
- monstre
stage: build
image: docker:latest
only:
- main
before_script:
- apk add --no-cache curl jq python3 py3-pip
- pip install awscli --break-system-packages
- aws ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_REGISTRY
- aws --version
script:
- cd /home/rodenewadmin
- git clone https://[email protected]/guigolab/bgp-configs.git
- rsync -av --delete /home/rodenewadmin/bgp-configs/biogenome-portal-ebp/ /home/rodenewadmin/biogenome-portal-ebp/
- cd /home/rodenewadmin/biogenome-portal-ebp/
- docker compose down
- docker compose pull
- docker compose up -d
- rsync -av --delete /home/rodenewadmin/bgp-configs/biogenome-portal-erga/ /home/rodenewadmin/biogenome-portal-erga/
- cd /home/rodenewadmin/biogenome-portal-erga/
- docker compose down
- docker compose pull
- docker compose up -d
- rsync -av --delete /home/rodenewadmin/bgp-configs/biogenome-portal-lichenoteca/ /home/rodenewadmin/biogenome-portal-lichenoteca/
- cd /home/rodenewadmin/biogenome-portal-lichenoteca/
- docker compose down
- docker compose pull
- docker compose up -d
- rm -rf /home/rodenewadmin/bgp-configs