cic-stack/ci_templates/.cic-template.yml

24 lines
734 B
YAML
Raw Normal View History

2021-01-24 21:38:11 +01:00
.py-build:
2021-01-24 21:16:22 +01:00
stage: build
image: docker:19.03.13
variables:
2021-01-24 21:38:11 +01:00
# docker host
DOCKER_HOST: tcp://docker:2376
# container, thanks to volume mount from config.toml
DOCKER_TLS_CERTDIR: "/certs"
# These are usually specified by the entrypoint, however the
# Kubernetes executor doesn't run entrypoints
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4125
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
2021-01-29 16:39:42 +01:00
DOCKERFILE_PATH: docker/
2021-01-24 21:16:22 +01:00
services:
- docker:19.03.13-dind
before_script:
- docker info
- cd $CONTEXT
script:
2021-01-29 16:39:42 +01:00
- docker build -t $CI_PROJECT_PATH_SLUG:$CI_COMMIT_SHORT_SHA -f $DOCKERFILE_PATH .
2021-01-24 21:16:22 +01:00