-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
42 lines (40 loc) · 946 Bytes
/
.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
stages:
- Deploy
Deploy Staging:
stage: Deploy
image: ghcr.io/monetr/build-containers/debian:12.1
rules:
- if: $CI_PIPELINE_SOURCE == "trigger" && $ENVIRONMENT == "my.monetr.dev"
when: always
environment:
deployment_tier: staging
name: Staging
url: https://my.monetr.dev
tags:
- monetr:deploy
- env:staging
variables:
DEPLOY_NAMESPACE: monetr-staging
script:
- make dry
- make deploy
Deploy Production:
stage: Deploy
image: ghcr.io/monetr/build-containers/debian:12.1
rules:
- if: $CI_PIPELINE_SOURCE == "trigger" && $ENVIRONMENT == "my.monetr.app"
when: always
- if: $CI_COMMIT_TAG == null || $CI_COMMIT_TAG == ""
when: never
environment:
deployment_tier: production
name: Production
url: https://my.monetr.app
tags:
- monetr:deploy
- env:production
variables:
DEPLOY_NAMESPACE: monetr
script:
- make dry
- make deploy