-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
37 lines (32 loc) · 919 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
image: docker:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
stages:
# - test
- package
# - deploy
#test:
# stage: test
# image: node:6.10.2
# before_script:
# - yarn install
# script:
# - npm run test-client-ci
docker-build:
stage: package
script:
- docker build -t us.gcr.io/archimedes-01201/orpheus-api:test .
# k8s-deploy:
# image: geertjohan/google-cloud-sdk-with-docker
# stage: deploy
# script:
# - echo "$GOOGLE_KEY" > key.json # Google Cloud service account key
# - gcloud auth activate-service-account --key-file key.json
# - gcloud config set compute/zone us-east1-b
# - gcloud config set project archimedes-01201
# - gcloud config set container/use_client_certificate True
# - gcloud container clusters get-credentials orpheus-cluster
# - gcloud docker -- push us.gcr.io/archimedes-01201/orpheus-app:test
# - kubectl apply -f k8s/