-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Changie Add dagger dry release test Signed-off-by: Vasek - Tom C <[email protected]>
- Loading branch information
Showing
8 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), | ||
and is generated by [Changie](https://github.com/miniscruff/changie). |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## v0.0.1 - 2024-02-15 | ||
|
||
|
||
### Added | ||
* Quartz daggerverse experimental release | ||
|
||
Made with ❤️ by [Quartz](https://quartz.technology) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
changesDir: .changes | ||
unreleasedDir: unreleased | ||
headerPath: header.tpl.md | ||
changelogPath: CHANGELOG.md | ||
versionExt: md | ||
versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}' | ||
kindFormat: '### {{.Kind}}' | ||
changeFormat: '* {{.Body}}' | ||
kinds: | ||
- label: Added | ||
- label: Changed | ||
- label: Deprecated | ||
- label: Removed | ||
- label: Fixed | ||
- label: Security | ||
- label: Dependencies | ||
footerFormat: | | ||
Made with ❤️ by [Quartz](https://quartz.technology) | ||
newlines: | ||
beforeChangelogVersion: 3 | ||
afterVersion: 1 | ||
beforeKind: 1 | ||
beforeFooterTemplate: 1 | ||
envPrefix: CHANGIE_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release Daggerverse modules (dry-run) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release-dry: | ||
name: Run dry run publishing | ||
runs-on: ubuntu-latest | ||
env: | ||
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dagger | ||
run: | | ||
cd /usr/local | ||
curl -L https://dl.dagger.io/dagger/install.sh | sh | ||
dagger version | ||
- name: Run dry run publishing | ||
run: | | ||
dagger -m github.com/quartz-technology/daggerverse/daggerverse-cockpit call publish --repository=. --dryRun --exclude="deprecated" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Release Daggerverse modules | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), | ||
and is generated by [Changie](https://github.com/miniscruff/changie). | ||
|
||
|
||
|
||
## v0.0.1 - 2024-02-15 | ||
|
||
|
||
### Added | ||
* Quartz daggerverse experimental release | ||
|
||
Made with ❤️ by [Quartz](https://quartz.technology) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Daggerverse release process | ||
|
||
## Requirements | ||
|
||
- [changie](https://changie.dev): a changelog management tool. | ||
- [GitHub CLI](https://cli.github.com/): GitHub utility tools. | ||
|
||
## Verify your `main` branch is up to date | ||
|
||
```shell | ||
git checkout main | ||
|
||
git pull | ||
|
||
git fetch --all --tags | ||
``` | ||
|
||
## Store the current version | ||
|
||
```shell | ||
export VERSION=$(changie latest) | ||
|
||
# echo $VERSION | ||
``` | ||
|
||
## Update CHANGELOG | ||
|
||
```shell | ||
git checkout -b release/bump-$VERSION | ||
|
||
changie batch patch | ||
changie merge | ||
|
||
# Open the Changelog update PR and merge it if everything is okay. | ||
``` | ||
|
||
💡 Replace `batch` by minor or major if it's another version. | ||
|
||
## Tag the release | ||
|
||
```shell | ||
git tag origin $VERSION | ||
git push origin $VERSION | ||
|
||
gh release create "Quartz Daggerverse - $VERSION" --draft --verify-tag --title "Quartz Daggerverse - $VERSION" --notes-files .changes/$VERSION.md | ||
`` | ||
|
||
This will trigger the workflow to publish all modules to daggerverse. | ||
|