Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 63f4bab3 authored by Thierry Martinez's avatar Thierry Martinez
Browse files

Merge branch 'fix.4.include_project' into 'main'

Fix #4: use include project instead of absolute URL

Closes #4

See merge request !4
parents 9bd62a4b 114e23f9
Branches main
No related tags found
1 merge request!4Fix #4: use include project instead of absolute URL
Pipeline #910246 passed
include:
- local: "register-dockerfile/register-dockerfile.yml"
.build-image:
tags:
- linux
- small
image: docker
extends: .register-dockerfile-prepare
stage: test
rules:
- changes:
- $image_template/*
script:
- docker build -t "$CI_REGISTRY_IMAGE/$image_name" "$image_template" --build-arg $build_arg
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- docker push "$CI_REGISTRY_IMAGE/$image_name"
- .gitlab-ci.yml
- $image_name/*
variables:
image_template: $image_name
build_arg:
docker_build_root: $image_name
image_tag: "latest"
python3-cloudstack:
extends: .build-image
......@@ -28,11 +26,13 @@ rust:
extends: .build-image
variables:
image_name: rust
build_arg: tag=latest
docker_build_options: --build-arg tag=latest
rust-1.72:
extends: .build-image
variables:
image_name: rust:1.72
image_template: rust
build_arg: tag=1.72
image_name: rust
# https://gitlab.com/gitlab-org/gitlab-foss/-/issues/22648
# "variable definition must be either a string or a hash"
image_tag: "1.72"
docker_build_options: --build-arg tag=1.72
......@@ -10,7 +10,8 @@ You may add the following lines to include this template in your
pipeline specification.
```yaml
include:
- "https://gitlab.inria.fr/inria-ci/docker/-/raw/main/register-dockerfile/register-dockerfile.yml"
- project: "inria-ci/docker"
file: "/register-dockerfile/register-dockerfile.yml"
```
This template defines two
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment