2022-03-15 14:32:56 +01:00
|
|
|
---
|
|
|
|
kind: 'pipeline'
|
|
|
|
name: 'build'
|
2023-03-22 15:35:26 +01:00
|
|
|
type: 'kubernetes'
|
2022-03-15 14:32:56 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2022-10-07 14:31:01 +02:00
|
|
|
# build and publish
|
2023-03-22 15:45:32 +01:00
|
|
|
- image: 'plugins/docker'
|
2022-10-07 14:31:01 +02:00
|
|
|
name: 'publish'
|
|
|
|
pull: 'always'
|
2023-11-08 18:07:49 +01:00
|
|
|
when:
|
|
|
|
branch:
|
2023-11-20 15:14:18 +01:00
|
|
|
- 'master'
|
2023-12-29 19:49:06 +01:00
|
|
|
event:
|
|
|
|
- 'push'
|
2023-11-08 18:07:49 +01:00
|
|
|
|
2022-10-07 14:31:01 +02:00
|
|
|
settings:
|
2022-10-07 12:53:51 +02:00
|
|
|
|
2022-10-07 14:31:01 +02:00
|
|
|
# registery and repos
|
2023-05-25 15:51:28 +02:00
|
|
|
registry: 'cr.simoncor.net'
|
|
|
|
cache_from: 'siempie/ansible-deployment'
|
|
|
|
repo: 'cr.simoncor.net/siempie/ansible-deployment'
|
2023-12-24 14:07:09 +01:00
|
|
|
mtu: '1440'
|
2022-10-07 14:01:55 +02:00
|
|
|
|
2022-10-07 14:31:01 +02:00
|
|
|
# build stuff
|
|
|
|
dockerfile: 'Dockerfile.linux.amd64'
|
2023-03-22 16:11:59 +01:00
|
|
|
daemon_off: 'false'
|
2022-10-07 14:06:29 +02:00
|
|
|
|
2022-10-07 14:31:01 +02:00
|
|
|
# authentication
|
|
|
|
username:
|
|
|
|
from_secret: 'docker_username'
|
|
|
|
password:
|
|
|
|
from_secret: 'docker_password'
|
|
|
|
|
|
|
|
# tags
|
|
|
|
tags:
|
2023-11-20 15:14:18 +01:00
|
|
|
- 'latest'
|
2024-06-25 15:51:35 +02:00
|
|
|
- 'v30'
|