svelte-testing/.drone.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2022-07-01 15:00:51 +02:00
kind: pipeline
type: kubernetes
name: deploy
trigger:
event:
- push
steps:
- name: build-publish-image
image: plugins/docker
privileged: true
volumes:
- name: build
path: /drone/src/build
settings:
2022-07-01 15:09:45 +02:00
cache_from:
2022-07-01 15:13:59 +02:00
"dutchellie/${DRONE_REPO_NAME}:${DRONE_BRANCH}-latest"
2022-07-01 15:00:51 +02:00
username:
from_secret: org_docker_username
password:
from_secret: org_docker_password
dockerfile: Dockerfile
repo: dutchellie/${DRONE_REPO_NAME}
tags:
- ${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:8}
2022-07-01 15:09:45 +02:00
- ${DRONE_BRANCH}-latest
2022-07-01 15:00:51 +02:00
- name: deploy
image: pelotech/drone-helm3
settings:
mode: upgrade
chart: .drone/helm/chart
namespace: drone-staging
release: ${DRONE_REPO_NAME}-${DRONE_BRANCH}
skip_tls_verify: true
values_files:
- .drone/helm/staging-val.yaml
values:
- "image=dutchellie/${DRONE_REPO_NAME}:${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:8}"
- "baseURL=${DRONE_BRANCH}.${DRONE_REPO_NAME}.ci.dutchellie.nl"
2022-07-01 15:12:02 +02:00
- "name=${DRONE_REPO_NAME}-${DRONE_BRANCH}"
2022-07-01 15:00:51 +02:00
kube_api_server:
from_secret: org_api_server
kube_token:
from_secret: org_kube_token
kube_certificate:
from_secret: org_kube_certificate
kube_service_account: drone-deploy
dry_run: false
depends_on:
- build-publish-image
volumes:
- name: build
temp: {}