forked from DBCG/cql_execution_service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
48 lines (45 loc) · 1.25 KB
/
.drone.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
kind: pipeline
name: default
steps:
# Create Docker image from WAR file and push to Docker registry
- name: create_docker_image_
image: plugins/docker
settings:
repo: gt-build.hdap.gatech.edu/cql/cql #Change to your project name
dockerfile: ./Dockerfile
# Pull magic chartbuilder program to auto-magically deploys based on values.yaml
- name: get_chart_builder
image: docker:git
commands:
- git clone https://github.gatech.edu/es130/HDAP_helm_deploy_templates.git
# Set the namespace to use for deployment via values.yaml
- name: copy_namespace
image: busybox:1.31
commands:
- userns=`awk '/namespace:/{print $2}' ./values.yaml`
- sed -i "s/REPLACE_WITH_NAMESPACE/$userns/g" ./HDAP_helm_deploy_templates/deploy/Dockerfile
# Run help to build the Kubernetes config file to deploy the application
- name: deploy_to_k8s
image: docker:dind
volumes:
- name: dockersock
path: /var/run
commands:
- sleep 10
- docker build -t deploytok8s -f ./HDAP_helm_deploy_templates/deploy/Dockerfile .
- docker run deploytok8s
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
trigger:
branch:
- master
event:
- push