Compare commits
4 Commits
v0.1.0
...
9e703540a7
| Author | SHA1 | Date | |
|---|---|---|---|
|
9e703540a7
|
|||
|
031ccb890e
|
|||
|
7c4b34cf9a
|
|||
|
66373c0636
|
@@ -0,0 +1,23 @@
|
|||||||
|
name: Audit
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "**/Cargo.toml"
|
||||||
|
- "**/Cargo.lock"
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
audit:
|
||||||
|
name: cargo audit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: rustsec/audit-check@v2.0.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prek:
|
||||||
|
name: prek
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
with:
|
||||||
|
components: rustfmt, clippy
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: j178/prek-action@v2
|
||||||
|
|
||||||
|
cargo-shear:
|
||||||
|
name: cargo shear
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: cargo-shear
|
||||||
|
- run: cargo shear --deny-warnings
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
name: Committed
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
committed:
|
||||||
|
name: committed
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: crate-ci/committed@master
|
||||||
|
with:
|
||||||
|
commits: "${{ gitea.base_ref }}..${{ gitea.ref_name }}"
|
||||||
|
args: "-vvvv --no-merge-commit"
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
name: Release-plz
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-plz:
|
||||||
|
name: Release-plz Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: read
|
||||||
|
steps:
|
||||||
|
- &checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
persist-credentials: false
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: release-plz
|
||||||
|
- &git-setup
|
||||||
|
name: Configure git
|
||||||
|
run: |
|
||||||
|
git config user.name "Release-plz"
|
||||||
|
git config user.email "release-plz@noreply.huizinga.dev"
|
||||||
|
git config url.https://${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}@git.huizinga.dev/.insteadOf https://git.huizinga.dev/
|
||||||
|
- env:
|
||||||
|
CARGO_REGISTRIES_INFRA_TOKEN: "Bearer ${{ secrets.REGISTRY_TOKEN }}"
|
||||||
|
run: release-plz release --git-token "${{ secrets.GITEA_TOKEN }}" --forge gitea --dry-run
|
||||||
|
|
||||||
|
release-plz-pr:
|
||||||
|
name: Release-plz PR
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
concurrency:
|
||||||
|
group: release-plz-${{ github.ref }}
|
||||||
|
cancel-in-progress: false
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- *checkout
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: release-plz
|
||||||
|
- *git-setup
|
||||||
|
- run: release-plz release-pr --git-token "${{ secrets.GITEA_TOKEN }}" --forge gitea
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
[workspace]
|
||||||
|
pr_name = "chore(release): Release v{{ version }}"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "xtask"
|
||||||
|
release = false
|
||||||
|
|
||||||
|
[changelog]
|
||||||
|
commit_parsers = [
|
||||||
|
{ message = "^feat", group = "<!-- 0 -->Features" },
|
||||||
|
{ message = "^revert", group = "<!-- 1 -->Revert" },
|
||||||
|
{ message = "^fix", group = "<!-- 2 -->Bug Fixes" },
|
||||||
|
{ message = "^refactor", group = "<!-- 3 -->Refactor" },
|
||||||
|
{ message = "^test", group = "<!-- 4 -->Testing" },
|
||||||
|
{ message = "^chore\\(release\\)", skip = true },
|
||||||
|
{ message = "^chore\\(deps.*\\)", skip = true },
|
||||||
|
{ message = "^chore|^ci", group = "<!-- 5 -->Miscellaneous Tasks" },
|
||||||
|
]
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Crete
|
||||||
|
|
||||||
|
A tool that takes node and cluster configs and uses it to generate talos configs
|
||||||
|
and render jinja templates.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Add the following to `~/.cargo.config.toml`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[registries.infra]
|
||||||
|
index = "sparse+https://git.huizinga.dev/api/packages/infra/cargo/"
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then install `crete` by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo install --registry infra crete
|
||||||
|
```
|
||||||
-22
@@ -1,22 +0,0 @@
|
|||||||
[changelog]
|
|
||||||
header = """
|
|
||||||
# Changelog
|
|
||||||
"""
|
|
||||||
|
|
||||||
[bump]
|
|
||||||
# TODO: Remove this option once we release v1.0.0
|
|
||||||
breaking_always_bump_major = false
|
|
||||||
|
|
||||||
[git]
|
|
||||||
fail_on_unmatched_commit = true
|
|
||||||
require_conventional = true
|
|
||||||
commit_parsers = [
|
|
||||||
{ message = "^feat", group = "<!-- 0 -->Features" },
|
|
||||||
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
|
|
||||||
{ message = "^refactor", group = "<!-- 2 -->Refactor" },
|
|
||||||
{ message = "^test", group = "<!-- 3 -->Testing" },
|
|
||||||
{ message = "^chore\\(release\\): Prepare for", skip = true },
|
|
||||||
{ message = "^chore\\(deps.*\\)", skip = true },
|
|
||||||
{ message = "^chore|^ci", group = "<!-- 4 -->Miscellaneous Tasks" },
|
|
||||||
{ message = "^revert", group = "<!-- 5 -->Revert" },
|
|
||||||
]
|
|
||||||
Reference in New Issue
Block a user