Files
drone-kaniko/.drone.yml
T
naumso c5074bdf53
continuous-integration/drone/push Build is passing
ci: clone depth 10
2026-10-13 02:02:34 +03:00

99 lines
1.5 KiB
YAML

---
kind: pipeline
type: kubernetes
#type: docker
clone:
#disable: true
depth: 10
name: deploy develop and staging
platform:
os: linux
arch: amd64
trigger:
branch:
- master
event:
- push
steps:
- name: build test image
image: harbor.1sept.ru/drone/drone-kaniko
pull: always
settings:
registry: harbor.1sept.ru
repo: drone/drone-kaniko-test
cache: false
tags:
- git-${DRONE_COMMIT_SHA:0:7}
- drone-${DRONE_BUILD_NUMBER}
username:
from_secret: harbor-username
password:
from_secret: harbor-password
- name: test image
image: harbor.1sept.ru/drone/drone-kaniko-test:git-${DRONE_COMMIT_SHA:0:7}
pull: always
settings:
registry: harbor.1sept.ru
repo: drone/drone-kaniko-test
cache: false
tags:
- test
username:
from_secret: harbor-username
password:
from_secret: harbor-password
image_pull_secrets:
- dockerconfig
---
kind: pipeline
name: promote production
type: kubernetes
clone:
# disable: true
depth: 10
trigger:
branch:
- master
event:
- promote
target:
- production
steps:
- name: build image
image: harbor.1sept.ru/drone/drone-kaniko
settings:
registry: harbor.1sept.ru
repo: drone/drone-kaniko
cache: false
tags:
- git-${DRONE_COMMIT_SHA:0:7}
- latest
username:
from_secret: harbor-username
password:
from_secret: harbor-password
image_pull_secrets:
- dockerconfig
---
kind: signature
hmac: 6e8ee6d90cec23fbef9b711996ec12b958806a8927789c673886bd8cc783408d
...