galerie-site/.drone.yml
Julius a9d60f8ab3
All checks were successful
continuous-integration/drone/push Build is passing
Add drone caching
2022-06-12 00:34:54 +02:00

31 lines
564 B
YAML

---
kind: pipeline
type: kubernetes
name: Build Docker image
trigger:
branch:
- main
- staging
event:
exclude:
- pull_request
steps:
- name: commit hash magic
image: bitnami/git:2.33.0
commands:
- git show -s --format=%H | tee hash
- name: kaniko
image: plugins/kaniko
settings:
enable_cache: true
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
registry: https://registry.asraphiel.dev/
repo: registry.asraphiel.dev/library/galerie
tags: ${DRONE_COMMIT_BRANCH}