runtime/.drone.yml

42 lines
839 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
image: harbor.hq.rosti.cz/library/builder:35
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
2021-11-19 17:11:17 +00:00
- DOCKER=podman make 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
name: test image building
2021-09-21 21:20:54 +00:00
steps:
2021-11-19 17:09:15 +00:00
- name: test build
image: harbor.hq.rosti.cz/library/builder:35
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
2021-11-19 17:11:17 +00:00
- DOCKER=podman make build