Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 29bc17c9 authored by Dorian Turba's avatar Dorian Turba
Browse files

update README.md

parent af0b8a4f
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
## Objective ## Objective
This template is used to retrieve all versions of a package from PyPI and compare it to Used to retrieve all versions of a package from PyPI and compare it to the version of
the version of the image in the registry. If the version of the image is missing, the the image in the registry. If the version of the image is missing, the job will create
job will create an artefact with the lowest version of the package missing in the an artefact with the lowest version of the package missing in the registry, ready to be
registry, ready to be used for other jobs to build the image. used for other jobs to build the image.
## How to use it ## How to use it
...@@ -16,32 +16,47 @@ registry, ready to be used for other jobs to build the image. ...@@ -16,32 +16,47 @@ registry, ready to be used for other jobs to build the image.
Add the following to your `.gitlab-ci.yml` file. Add the following to your `.gitlab-ci.yml` file.
#### As a Local component
Recommended if the component is local to the instance:
As a local Template (if the template is local to the instance):
```yaml ```yaml
include: include:
- project: 'swepy/cicd-templates/pypi-to-docker-missing-version' - component: $CI_SERVER_FQDN/swepy/cicd-templates/pypi-to-docker-missing-version/pypi-to-docker-missing-version@0.3.0
ref: '0.3.0'
file: 'templates/pypi-to-docker-missing-version.yml'
``` ```
As a Component ([beta](https://gitlab.com/gitlab-org/gitlab/-/issues/407556) and if the If your GitLab instance version is lower than `16.10`, use `$CI_SERVER_HOST` instead
component is local to the instance): of `$CI_SERVER_FQDN`. Don't forget to add the port if necessary.
#### As a Remote template
Recommended if the template is not local to the instance:
##### Source: lab.frogg.it
```yaml ```yaml
include: include:
- component: $CI_SERVER_FQDN/swepy/cicd-templates/pypi-to-docker-missing-version/pypi-to-docker-missing-version@0.3.0 - remote: 'https://lab.frogg.it/swepy/cicd-templates/pypi-to-docker-missing-version/-/raw/0.3.0/templates/pypi-to-docker-missing-version.yml'
``` ```
As a remote Template (recommended): ##### Mirror: GitLab.com
```yaml ```yaml
include: include:
- remote: 'https://gitlab.com/swepy/cicd-templates/pypi-to-docker-missing-version/-/raw/0.3.0/templates/pypi-to-docker-missing-version.yml' - remote: 'https://gitlab.com/swepy/cicd-templates/pypi-to-docker-missing-version/-/raw/0.3.0/templates/pypi-to-docker-missing-version.yml'
``` ```
#### As a Local template
If the template is local to the instance:
```yaml
include:
- project: 'swepy/cicd-templates/pypi-to-docker-missing-version'
ref: '0.3.0'
file: 'templates/pypi-to-docker-missing-version.yml'
```
### Customize job ### Customize job
You can customize the job by overriding specific keys. For example: You can customize the job by overriding specific keys. For example:
......
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