2023-04-09 16:16:30 +00:00
|
|
|
stages:
|
2023-04-09 20:08:02 +00:00
|
|
|
- versioning
|
2023-04-09 16:52:50 +00:00
|
|
|
- build
|
2023-04-09 19:39:37 +00:00
|
|
|
|
2023-04-09 20:08:02 +00:00
|
|
|
version:
|
2023-05-16 00:09:11 +00:00
|
|
|
image: gittools/gitversion:5.12.0
|
2023-05-20 11:34:49 +00:00
|
|
|
stage:
|
2023-05-16 00:13:54 +00:00
|
|
|
variables:
|
|
|
|
|
GIT_DEPTH: "0"
|
2023-04-09 20:08:02 +00:00
|
|
|
script:
|
|
|
|
|
- ./scripts/version-number.sh
|
|
|
|
|
artifacts:
|
|
|
|
|
reports:
|
|
|
|
|
dotenv: version.env
|
|
|
|
|
|
2023-04-09 11:05:20 -05:00
|
|
|
build-container:
|
2023-05-10 12:05:58 +00:00
|
|
|
image: registry.durp.info/docker:20.10.16
|
2023-04-09 11:05:20 -05:00
|
|
|
variables:
|
2023-05-10 12:12:04 +00:00
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
|
DOCKER_HOST: tcp://docker:2375
|
|
|
|
|
#DOCKER_TLS_CERTDIR: "/certs"
|
2023-04-09 11:05:20 -05:00
|
|
|
services:
|
2023-04-09 16:52:50 +00:00
|
|
|
- docker:20.10.16-dind
|
2023-04-09 16:16:30 +00:00
|
|
|
stage: build
|
2023-04-09 11:05:20 -05:00
|
|
|
script:
|
|
|
|
|
- ./scripts/docker-login.sh
|
|
|
|
|
- ./scripts/docker-build.sh
|
2023-04-09 20:08:02 +00:00
|
|
|
needs:
|
|
|
|
|
- job: version
|
|
|
|
|
artifacts: true
|
2023-04-09 11:05:20 -05:00
|
|
|
only:
|
2023-04-09 19:39:37 +00:00
|
|
|
- main
|
2023-05-20 11:34:49 +00:00
|
|
|
tags:
|
|
|
|
|
- docker
|
|
|
|
|
|
2023-04-09 19:39:37 +00:00
|
|
|
HelmChart:
|
2023-05-10 12:05:58 +00:00
|
|
|
image: registry.durp.info/dtzar/helm-kubectl
|
2023-04-09 19:39:37 +00:00
|
|
|
stage: build
|
|
|
|
|
script:
|
|
|
|
|
- ./scripts/helm-addrepo.sh
|
|
|
|
|
- ./scripts/helm-package.sh
|
|
|
|
|
- ./scripts/helm-push.sh
|
2023-04-09 20:08:02 +00:00
|
|
|
needs:
|
|
|
|
|
- job: version
|
|
|
|
|
artifacts: true
|
2023-04-09 19:39:37 +00:00
|
|
|
only:
|
|
|
|
|
- main
|