runtime/.drone.off.yml

48 lines
890 B
YAML
Raw Permalink 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-11-26 01:52:15 +00:00
image: harbor.hq.rosti.cz/library/builder:39
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-11-26 01:52:15 +00:00
image: harbor.hq.rosti.cz/library/builder:39
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
2023-08-12 12:44:11 +00:00
- task test VERSION=test
trigger:
event:
exclude:
- promote