2022-11-01 13:03:03 +01:00
|
|
|
---
|
|
|
|
kind: 'pipeline'
|
|
|
|
name: 'build'
|
2023-03-22 17:22:48 +01:00
|
|
|
type: 'kubernetes'
|
2022-11-01 13:03:03 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# build and publish
|
|
|
|
- image: 'plugins/docker'
|
|
|
|
name: 'publish'
|
|
|
|
pull: 'always'
|
|
|
|
settings:
|
|
|
|
|
|
|
|
# registery and repos
|
|
|
|
registry: 'docker.io'
|
|
|
|
repo: 'rakepanorama/start-simoncor-net'
|
2023-03-22 17:22:48 +01:00
|
|
|
mtu: '1400'
|
2022-11-01 13:03:03 +01:00
|
|
|
|
|
|
|
# build stuff
|
|
|
|
dockerfile: 'Dockerfile.linux.amd64'
|
|
|
|
daemon_off: 'false'
|
|
|
|
|
|
|
|
# authentication
|
|
|
|
username:
|
|
|
|
from_secret: 'docker_username'
|
|
|
|
password:
|
|
|
|
from_secret: 'docker_password'
|
|
|
|
|
|
|
|
# tags
|
|
|
|
tags:
|
2022-11-01 18:21:11 +01:00
|
|
|
- 'v1.0'
|
2022-11-01 13:03:03 +01:00
|
|
|
- 'latest'
|
2023-03-23 10:36:13 +01:00
|
|
|
|
|
|
|
|
2023-03-23 10:44:10 +01:00
|
|
|
# deploy to kubernetes
|
2023-03-23 11:07:06 +01:00
|
|
|
- image: 'docker.io/bitnami/kubectl:1.26.3'
|
2023-03-23 10:44:10 +01:00
|
|
|
name: 'deploy'
|
|
|
|
pull: 'always'
|
|
|
|
environment:
|
|
|
|
KUBE_CONFIG:
|
|
|
|
from_secret: 'kube_config'
|
|
|
|
|
|
|
|
commands:
|
2023-03-23 10:52:28 +01:00
|
|
|
- 'echo $KUBE_CONFIG > $HOME/.kube/config'
|
|
|
|
- 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net '
|