Skip to content

Commit

Permalink
feat: add changie (#6)
Browse files Browse the repository at this point in the history
Setup Changie
Add dagger dry release test

Signed-off-by: Vasek - Tom C <[email protected]>
  • Loading branch information
TomChv authored Feb 15, 2024
1 parent f6dc714 commit 5967264
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/header.tpl.md
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 added .changes/unreleased/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions .changes/v0.0.1.md
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)
24 changes: 24 additions & 0 deletions .changie.yaml
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_
30 changes: 30 additions & 0 deletions .github/workflows/release-dry-run.yml
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"
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Release Daggerverse modules

on:
release:
types: [published]

jobs:
16 changes: 16 additions & 0 deletions CHANGELOG.md
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)
49 changes: 49 additions & 0 deletions RELEASING.md
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.

0 comments on commit 5967264

Please sign in to comment.