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
|
2023-08-12 12:16:21 +00:00
|
|
|
- task push
|
2021-09-21 21:44:11 +00:00
|
|
|
|
|
|
|
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
|
2023-08-12 12:16:21 +00:00
|
|
|
- task build VERSION=test
|
|
|
|
- task testVERSION=test
|
2021-11-20 00:45:02 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- promote
|