runtime/.drone.yml

48 lines
903 B
YAML
Raw Normal View History

2021-09-20 22:53:02 +00:00
kind: pipeline
2021-11-19 17:09:15 +00:00
type: docker
name: image building
2021-09-21 11:32:48 +00:00
2021-09-20 22:53:02 +00:00
steps:
2021-11-19 17:09:15 +00:00
- name: build&push squashed image
2023-08-12 12:24:18 +00:00
image: registry.kube.ceperka.net/library/builder:38
2021-11-19 17:09:15 +00:00
environment:
username: robot$rosti+rosti
password:
from_secret: repo_password
repo: harbor.hq.rosti.cz
privileged: true
2021-09-21 11:32:48 +00:00
commands:
2021-11-19 17:09:15 +00:00
- echo "$password" | podman login -u $username --password-stdin $repo
- task push
trigger:
event:
2021-11-19 17:11:17 +00:00
- promote
target:
- production
2021-09-21 21:20:54 +00:00
---
kind: pipeline
2021-11-19 17:09:15 +00:00
type: docker
2021-12-04 15:25:58 +00:00
name: test image
2021-09-21 21:20:54 +00:00
steps:
2021-11-19 17:09:15 +00:00
- name: test build
2023-08-12 12:24:18 +00:00
image: registry.kube.ceperka.net/library/builder:38
2021-09-21 21:20:54 +00:00
environment:
2021-11-19 17:09:15 +00:00
username: robot$rosti+rosti
password:
from_secret: repo_password
repo: harbor.hq.rosti.cz
privileged: true
2021-09-21 21:20:54 +00:00
commands:
2021-11-19 17:09:15 +00:00
- echo "$password" | podman login -u $username --password-stdin $repo
- task build VERSION=test
- task testVERSION=test
trigger:
event:
exclude:
- promote