galerie-site/.drone.yml

31 lines
564 B
YAML
Raw Permalink Normal View History

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:
2022-06-12 00:34:54 +02:00
enable_cache: true
2020-11-18 21:55:57 +01:00
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
2022-05-24 09:16:03 +02:00
registry: https://registry.asraphiel.dev/
repo: registry.asraphiel.dev/library/galerie
2021-10-12 19:30:08 +02:00
tags: ${DRONE_COMMIT_BRANCH}
2021-11-11 22:37:04 +01:00