ci-includes-yml/templates/build-container.tpl.yml

46 lines
872 B
YAML
Raw Normal View History

2023-04-09 16:16:30 +00:00
stages:
- versioning
2023-04-09 16:52:50 +00:00
- build
2023-04-09 19:39:37 +00:00
version:
image: gittools/gitversion:5.12.0
stage: versioning
2023-05-16 00:13:54 +00:00
variables:
GIT_DEPTH: "0"
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:
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
needs:
- job: version
artifacts: true
2023-04-09 11:05:20 -05:00
only:
2023-04-09 19:39:37 +00:00
- main
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
needs:
- job: version
artifacts: true
2023-04-09 19:39:37 +00:00
only:
- main