runtime/.drone.yml

48 lines
932 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:54 +00:00
- make DOCKER=podman 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
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 22:52:57 +00:00
- make VERSION=test DOCKER=podman build
- make DOCKER=podman VERSION=test test
trigger:
event:
exclude:
- promote