Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
update helm, maven, and ci-pipeline-client
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido committed Nov 15, 2019
1 parent 8c1ed2c commit bdc5b3c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
44 changes: 22 additions & 22 deletions .banzaicloud/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
pipeline:
create_cluster:
image: banzaicloud/ci-pipeline-client:0.11
image: banzaicloud/ci-pipeline-client:0.12
action: EnsureCluster

test:
image: maven:3.5-jdk-11-slim
image: maven:3.6-jdk-11-slim
commands:
- mvn -Dmaven.repo.local=${PWD}/.m2/repository clean test

build_image:
image: maven:3.5-jdk-11-slim
image: maven:3.6-jdk-11-slim
commands:
- mvn -Dmaven.repo.local=${PWD}/.m2/repository compile jib:build
environment:
Expand All @@ -32,6 +32,20 @@ pipeline:
# DOCKER_PASSWORD:
# keyRef: password

# install_gcr_secret:
# when:
# branch:
# include: [master]
# image: banzaicloud/ci-pipeline-client:0.12
# action: InstallSecret
# clusterSecret:
# name: your-gcr-secret-name
# namespace: default
# merge: true
# spec:
# - name: json-key
# source: json-key

# build_image:
# image: banzaicloud/drone-kaniko
# dockerfile: Dockerfile
Expand All @@ -44,32 +58,18 @@ pipeline:
# keyRef: json-key

package_application:
image: lachlanevenson/k8s-helm:latest
image: alpine/helm:3.0.0
commands:
- helm init -c
- helm repo add stable https://kubernetes-charts.storage.googleapis.com
- helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
- helm dep update ./.banzaicloud/charts/spotguide-spring-boot
- helm package ./.banzaicloud/charts/spotguide-spring-boot

# install_gcr_secret:
# when:
# branch:
# include: [master]
# image: banzaicloud/ci-pipeline-client:0.11
# action: InstallSecret
# clusterSecret:
# name: your-gcr-secret-name
# namespace: default
# merge: true
# spec:
# - name: json-key
# source: json-key

install_mysql_user_secret:
when:
branch:
include: [master]
image: banzaicloud/ci-pipeline-client:0.11
image: banzaicloud/ci-pipeline-client:0.12
action: InstallSecret
clusterSecret:
name: '{{ .CICD_REPO_NAME }}-mysql'
Expand All @@ -85,7 +85,7 @@ pipeline:
when:
branch:
include: [master]
image: banzaicloud/ci-pipeline-client:0.11
image: banzaicloud/ci-pipeline-client:0.12
action: InstallSecret
clusterSecret:
name: '{{ .CICD_REPO_NAME }}-mysql'
Expand All @@ -99,7 +99,7 @@ pipeline:
when:
branch:
include: [master]
image: banzaicloud/ci-pipeline-client:0.11
image: banzaicloud/ci-pipeline-client:0.12
action: EnsureDeployment
deployment:
name: './spotguide-spring-boot-1.0.0.tgz'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.5-jdk-11-slim as build
FROM maven:3.6-jdk-11-slim as build

# Resolve all the dependencies and cache them to save a LOT of time
COPY pom.xml /usr/src/myapp/
Expand Down

0 comments on commit bdc5b3c

Please sign in to comment.