2020-11-18 21:55:57 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
2021-11-11 18:51:18 +01:00
|
|
|
name: Build Docker image
|
2021-11-11 18:46:14 +01:00
|
|
|
|
2021-11-11 18:49:07 +01:00
|
|
|
trigger:
|
|
|
|
branch:
|
2021-11-14 15:23:35 +01:00
|
|
|
- main
|
2021-11-11 18:49:07 +01:00
|
|
|
- staging
|
2021-11-14 15:29:51 +01:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2021-11-11 18:49:07 +01:00
|
|
|
|
2020-11-18 21:55:57 +01:00
|
|
|
steps:
|
2021-11-14 16:08:44 +01:00
|
|
|
- name: commit hash magic
|
|
|
|
image: bitnami/git:2.33.0
|
|
|
|
commands:
|
2021-11-14 16:30:58 +01:00
|
|
|
- git show -s --format=%H | tee hash
|
2020-11-18 21:55:57 +01:00
|
|
|
- name: kaniko
|
2021-11-14 15:06:42 +01:00
|
|
|
image: plugins/kaniko
|
2020-11-18 21:55:57 +01:00
|
|
|
settings:
|
2021-11-14 15:15:31 +01:00
|
|
|
enable-cache: true
|
2020-11-18 21:55:57 +01:00
|
|
|
username:
|
|
|
|
from_secret: REGISTRY_USER
|
|
|
|
password:
|
|
|
|
from_secret: REGISTRY_PASSWORD
|
2021-11-14 15:09:03 +01:00
|
|
|
registry: https://registry.voidcorp.nl/
|
|
|
|
repo: registry.voidcorp.nl/library/galerie
|
2021-10-12 19:30:08 +02:00
|
|
|
tags: ${DRONE_COMMIT_BRANCH}
|
2021-11-11 22:37:04 +01:00
|
|
|
|