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 8b7481f4 authored by Dorian Turba's avatar Dorian Turba
Browse files

First commit

parents
No related branches found
Tags release-by-changelog@0.1.0
No related merge requests found
Pipeline #34120 passed
stages:
- build
- test
- deploy
include:
- remote: 'https://gitlab.com/r2devops/hub/-/raw/template_release@0.2.1/jobs/template_release/template_release.yml'
# Changelog
All notable changes to this job will be documented in this file.
## [Unreleased] - TBD
[![Pipeline](https://lab.frogg.it/swepy/cicd-templates/release-by-changelog/badges/trunk/pipeline.svg)](https://lab.frogg.it/swepy/cicd-templates/release-by-changelog/-/pipelines?ref=trunk)
## [0.1.0] - 2024-05-05
[![Pipeline](https://lab.frogg.it/swepy/cicd-templates/release-by-changelog/badges/release-by-changelog@0.1.0/pipeline.svg)](https://lab.frogg.it/swepy/cicd-templates/release-by-changelog/-/pipelines?ref=release-by-changelog@0.1.0)
* Initial version
LICENSE 0 → 100644
MIT License
Copyright (c) 2024 Dorian Turba
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# Release By Changelog template
[![Pipeline](https://lab.frogg.it/swepy/cicd-templates/release_by_changelog/badges/main/pipeline.svg)](https://lab.frogg.it/swepy/cicd-templates/release_by_changelog/-/pipelines)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://lab.frogg.it/swepy/cicd-templates/release_by_changelog/-/blob/main/LICENSE)
## Objective
Run release_by_changelog on your project.
## How to use it
1. Include the release_by_changelog template in your GitLab CI/CD configuration.
2. If you need to customize the job, refer to
the [jobs customization](https://docs.r2devops.io/get-started/use-templates/#job-templates-customization)
documentation.
## Variables
| Name | Description | Default |
|------------------------|------------------------------------------|----------------------------|
| `IMAGE_NAME` | The default name for the docker image. | `"python"` |
| `IMAGE_TAG` | The default tag for the docker image. | `"latest"` |
| `IMAGE` | The default docker image name. | `"$IMAGE_NAME:$IMAGE_TAG"` |
| `PROJECT_PATH` | The path to the project root directory. | `"."` |
| `RELEASE_BY_CHANGELOG` | The command to run release_by_changelog. | `"release_by_changelog"` |
files:
template: release-by-changelog.yml
documentation: README.md
changelog: CHANGELOG.md
data:
description: "Run release-by-changelog on your repository"
icon: 💾
public: True
labels:
- Gitlab
- Utilities
- Deploy
license: MIT
deprecated: False
include:
- remote: 'https://lab.frogg.it/swepy/cicd-templates/venv/-/raw/venv@1.0.0/venv.yml'
python_venv:
rules:
- when: never
release_by_changelog_venv:
extends: python_venv
stage: build
variables:
PYTHON_SETUP: 'pip install release_by_changelog'
VENV_ARTIFACT_NAME: 'release_by_changelog_venv'
rules:
- when: null
ruff:
variables:
IMAGE_NAME: 'python'
IMAGE_TAG: 'latest'
IMAGE: '$IMAGE_NAME:$IMAGE_TAG'
PROJECT_PATH: '.'
RELEASE_BY_CHANGELOG: 'release_by_changelog'
image: $IMAGE
stage: test
before_script:
- source venv/bin/activate
- echo $PROJECT_PATH # Debug
- cd $PROJECT_PATH
- pwd # Debug
script:
- echo RELEASE_BY_CHANGELOG # Debug
- $RELEASE_BY_CHANGELOG
needs:
- job: release_by_changelog_venv
artifacts: true
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