From 81459b9ed7756f755f51bff4d3151cedea66a8c5 Mon Sep 17 00:00:00 2001 From: Quentin Bisson Date: Wed, 18 Sep 2024 16:52:00 +0200 Subject: [PATCH 1/2] allow-app-creation-in-collection It is currently impossible to push a new app in a collection because there is no base file to compare version with like so https://app.circleci.com/pipelines/github/giantswarm/alloy-app/192/workflows/500bf071-f394-499d-a823-565718fd6262/jobs/237 --- src/commands/push-to-app-collection.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/push-to-app-collection.yaml b/src/commands/push-to-app-collection.yaml index ca6f5c9f..b8541d47 100644 --- a/src/commands/push-to-app-collection.yaml +++ b/src/commands/push-to-app-collection.yaml @@ -35,7 +35,11 @@ steps: - run: name: "architect/push-to-app-collection: Fetch current version of the app in the collection" command: | - yq eval ".app_version" ".app-collection/flux-manifests/<>.yaml" | tee .app_version_in_collection + if [ ! -f .app-collection/flux-manifests/<>.yaml ]; then + echo "0.0.0" | tee .app_version_in_collection + else + yq eval ".app_version" ".app-collection/flux-manifests/<>.yaml" | tee .app_version_in_collection + fi - run: name: "architect/push-to-app-collection: Add / update resources to the collection repo" command: | From a15eb3bf3052234b62d873bafa37714b97d4e591 Mon Sep 17 00:00:00 2001 From: Quentin Bisson Date: Wed, 9 Oct 2024 11:15:31 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa472071..87044b5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Support new app creation in collections. + ## [5.10.1] - 2024-10-09 ### Changed