You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
669 B
41 lines
669 B
kind: pipeline
|
|
type: kubernetes
|
|
name: Build and Publish
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: Build & Publish
|
|
image: plugins/kaniko
|
|
settings:
|
|
username:
|
|
from_secret: DOCKER_USERNAME
|
|
password:
|
|
from_secret: DOCKER_PASSWORD
|
|
repo: vdhsn/blog
|
|
tags:
|
|
- ${DRONE_COMMIT_SHA}
|
|
- ${DRONE_BRANCH}
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: Deploy
|
|
|
|
trigger:
|
|
event:
|
|
- promote
|
|
|
|
steps:
|
|
- name: Publish Latest
|
|
image: plugins/kaniko
|
|
settings:
|
|
username:
|
|
from_secret: DOCKER_USERNAME
|
|
password:
|
|
from_secret: DOCKER_PASSWORD
|
|
repo: vdhsn/blog
|
|
tags:
|
|
- latest
|