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

46 lines
846 B
YAML
Raw Normal View History

2023-04-09 16:16:30 +00:00
stages:
2023-04-09 16:52:50 +00:00
- build
2023-04-09 19:39:37 +00:00
version:
image: gittools/gitversion:5.12.0
2023-05-20 11:45:05 +00:00
stage: .pre
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-20 12:03:39 +00:00
image: registry.durp.info/docker:20.10.17
2023-04-09 11:05:20 -05:00
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
2023-05-20 11:57:13 +00:00
DOCKER_HOST: tcp://localhost:2375/
2023-04-09 11:05:20 -05:00
services:
2023-05-20 12:03:39 +00:00
- docker:20.10.17-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
2023-05-20 11:57:24 +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
needs:
- job: version
artifacts: true
2023-04-09 19:39:37 +00:00
only:
- main