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

feat: default last version

parent 29bc17c9
No related branches found
No related tags found
No related merge requests found
Pipeline #39679 passed
......@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[![Pipeline](https://lab.frogg.it/swepy/cicd-templates/pypi-to-docker-missing-version/badges/trunk/pipeline.svg)](https://lab.frogg.it/swepy/cicd-templates/pypi-to-docker-missing-version/-/pipelines?ref=trunk)
### Changed
* Job now always create a `version.txt` with the last version released on pypi if
no version is missing in the registry
## [0.3.0] - 2024-07-16
[![Pipeline](https://lab.frogg.it/swepy/cicd-templates/pypi-to-docker-missing-version/badges/0.3.0/pipeline.svg)](https://lab.frogg.it/swepy/cicd-templates/pypi-to-docker-missing-version/-/pipelines?ref=0.3.0)
......
......@@ -54,14 +54,16 @@ pypi-to-docker-missing-version:
- version_to_publish=$(echo $sorted_releases | awk '{print $1}')
- 'echo "Version to publish: $version_to_publish"'
- echo "$version_to_publish" > version.txt
- cat version.txt
- if [ -n "$version_to_publish" ]; then
- exit 0
- echo "Version to publish=$version_to_publish"
- else
- exit 1
- version_to_publish=$(echo $releases | awk '{print $NF}')
- echo "Version to publish=$version_to_publish"
- fi
- echo "$version_to_publish" > version.txt
- cat version.txt
artifacts:
name: "version"
paths:
......
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