Skip to content
Snippets Groups Projects
Commit 0c89d738 authored by Griefed's avatar Griefed :joystick:
Browse files

Update template.gitlab-ci.yml

parent c2f53cca
No related branches found
No related tags found
No related merge requests found
stages:
- create_readme
- build
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
DOCKER_VERSION: 19.03.8 DOCKER_VERSION: 19.03.8
#Docker version MUST match the version in the runner config.toml #Docker version MUST match the version in the runner config.toml
image: docker:$DOCKER_VERSION
services: services:
- docker:$DOCKER_VERSION-dind - docker:$DOCKER_VERSION-dind
before_script: create_readme:
- docker info stage: create_readme
image: alpine:3.12
script:
- echo "Creating README for repository."
- source .readme_variables
- cp .readme_template README.md
- sed -i "s/$VARIABLE_IN_README/${VARIABLE_IN_README/g}"" README.md
artifacts:
expire_in: 1 week
paths:
- README.md
build: build:
stage: build stage: build
image: docker:$DOCKER_VERSION
script: script:
- echo "Build stage started."
- docker info
- docker build --network="host" -t $CI_PROJECT_NAME:latest . - docker build --network="host" -t $CI_PROJECT_NAME:latest .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment