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:
|
|
|
|
|
stage: versioning
|
|
|
|
|
script:
|
|
|
|
|
- ./scripts/version-number.sh
|
|
|
|
|
artifacts:
|
|
|
|
|
reports:
|
|
|
|
|
dotenv: version.env
|
|
|
|
|
|
2023-04-09 11:05:20 -05:00
|
|
|
build-container:
|
2023-04-09 16:52:50 +00:00
|
|
|
image: docker:20.10.16
|
2023-04-09 11:05:20 -05:00
|
|
|
variables:
|
2023-04-09 16:52:50 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
HelmChart:
|
|
|
|
|
image: dtzar/helm-kubectl
|
|
|
|
|
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
|