-
Notifications
You must be signed in to change notification settings - Fork 17
/
.gitlab-ci.yml
45 lines (41 loc) · 1.05 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
stages:
- deploy
image: node:10.15.0
deploy_production:
stage: deploy
image: ruby:latest
environment:
name: production
url: https://$HEROKU_SERVER_PROD.herokuapp.com/
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_SERVER_PROD --api-key=$HEROKU_API
when: manual
only:
- master
deploy_development:
stage: deploy
image: ruby:latest
environment:
name: development
url: https://$HEROKU_SERVER_DEV.herokuapp.com/
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_SERVER_DEV --api-key=$HEROKU_API
only:
- master
docker_registry:
image: docker:19.03.12
stage: deploy
services:
- docker:19.03.12-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY/suse-uiux/eos-strapi/development:latest .
- docker push $CI_REGISTRY/suse-uiux/eos-strapi/development:latest
only:
- master