forked from pluralsh/plural-artifacts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
69 lines (63 loc) · 1.53 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:latest
services:
- name: gcr.io/pluralsh/docker:19.03.13-dind
alias: docker
before_script:
- until docker info; do sleep 1; done
- gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
- gcloud auth configure-docker -q
- docker login -u [email protected] -p $PLURAL_ACCESS_TOKEN dkr.plural.sh
- |
function vendor_image {
docker pull $1
docker tag $1 gcr.io/pluralsh/$1
docker push gcr.io/pluralsh/$1
if [ -n "$2" ]; then
docker tag $1 dkr.plural.sh/$2/$1
docker push dkr.plural.sh/$2/$1
fi
}
retry:
max: 2
when:
- runner_system_failure
variables:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
stages:
- deploy
- push
include:
- .gitlab-ci/bootstrap.yml
- .gitlab-ci/grafana.yml
- .gitlab-ci/monitoring.yml
- .gitlab-ci/vendor.yml
- .gitlab-ci/sentry.yml
- .gitlab-ci/plural.yml
- .gitlab-ci/postgres.yml
- .gitlab-ci/redis.yml
- .gitlab-ci/ghost.yml
- .gitlab-ci/influx.yml
- .gitlab-ci/airflow.yml
- .gitlab-ci/gitlab.yml
- .gitlab-ci/superset.yml
- .gitlab-ci/airbyte.yml
- .gitlab-ci/nocodb.yml
.ignore-cond: &ignore-cond
except:
variables:
- $CI_COMMIT_MESSAGE =~ /pushed to plural/
deploy:
image: gcr.io/pluralsh/plrl-base:0.1.8
stage: deploy
<<: *ignore-cond
only:
- main
before_script:
- cat /root/configure.sh
- source /root/configure.sh
script:
- make all