Skip to content

Commit 909a408

Browse files
committed
add shipwright-io/build
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
1 parent ff11ded commit 909a408

File tree

26 files changed

+46908
-0
lines changed

26 files changed

+46908
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Release shipwright_io
5+
on:
6+
schedule:
7+
- cron: 54 15 * * THU
8+
workflow_dispatch:
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- id: checkout
16+
name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- id: commits
21+
name: Count Commits
22+
run: echo "count=$(git rev-list --count HEAD --since='last Thursday' -- custom-resources/shipwright_io)" >> $GITHUB_OUTPUT
23+
- id: release
24+
name: Create Release Version
25+
if: steps.commits.outputs.count > 0
26+
run: echo "version=1.$(date --utc +'%Y%m%d').$(date --utc +'%-H%M%S')" >> $GITHUB_OUTPUT
27+
- name: Set up Rust
28+
if: steps.commits.outputs.count > 0
29+
uses: dtolnay/rust-toolchain@stable
30+
- name: Install cargo-workspaces
31+
uses: taiki-e/install-action@v2
32+
with:
33+
tool: cargo-edit
34+
- name: Cargo Version
35+
if: steps.commits.outputs.count > 0
36+
run: cargo set-version --package kcr_shipwright_io ${{ steps.release.outputs.version }}
37+
- name: Publish to crates.io
38+
if: steps.commits.outputs.count > 0
39+
run: >
40+
cargo publish
41+
--allow-dirty
42+
--token ${{ secrets.CRATES_IO_TOKEN }}
43+
--package kcr_shipwright_io
44+
--jobs 1
45+
--no-verify
46+
env:
47+
RUSTFLAGS: "-A warnings"
48+
- id: mail
49+
name: Send Mail
50+
if: steps.commits.outputs.count > 0
51+
uses: dawidd6/action-send-mail@v5
52+
with:
53+
server_address: ${{ secrets.MAIL_SERVER }}
54+
server_port: ${{ secrets.MAIL_PORT }}
55+
username: ${{ secrets.MAIL_USERNAME }}
56+
password: ${{ secrets.MAIL_PASSWORD }}
57+
subject: ${{ github.event.repository.name }}/shipwright_io version ${{ steps.release.outputs.version }} published
58+
body: See ${{ steps.create_release.outputs.url }} for details.
59+
to: ${{ secrets.MAIL_RECIPIENT }}
60+
from: ${{ secrets.MAIL_SENDER }}
61+
- id: matrix
62+
name: Send Matrix Message
63+
if: steps.commits.outputs.count > 0
64+
uses: s3krit/matrix-message-action@v0.0.3
65+
with:
66+
room_id: ${{ secrets.MATRIX_ROOM_ID }}
67+
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
68+
message: ${{ github.event.repository.name }}/shipwright_io version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
69+
server: ${{ secrets.MATRIX_SERVER }}

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,10 @@ Files: crd-catalog/sematext/sematext-operator/*
12431243
Copyright: The sematext/sematext-operator Authors
12441244
License: Apache-2.0
12451245

1246+
Files: crd-catalog/shipwright-io/build/*
1247+
Copyright: The shipwright-io/build Authors
1248+
License: Apache-2.0
1249+
12461250
Files: crd-catalog/shipwright-io/operator/*
12471251
Copyright: The shipwright-io/operator Authors
12481252
License: Apache-2.0

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ members = [
360360
"custom-resources/services_k8s_aws",
361361
"custom-resources/serving_kubedl_io",
362362
"custom-resources/sfn_services_k8s_aws",
363+
"custom-resources/shipwright_io",
363364
"custom-resources/site_superedge_io",
364365
"custom-resources/slinky_slurm_net",
365366
"custom-resources/slo_koordinator_sh",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ The following groups are available:
400400
- [services.k8s.aws](https://crates.io/crates/kcr_services_k8s_aws)
401401
- [serving.kubedl.io](https://crates.io/crates/kcr_serving_kubedl_io)
402402
- [sfn.services.k8s.aws](https://crates.io/crates/kcr_sfn_services_k8s_aws)
403+
- [shipwright.io](https://crates.io/crates/kcr_shipwright_io)
403404
- [site.superedge.io](https://crates.io/crates/kcr_site_superedge_io)
404405
- [slinky.slurm.net](https://crates.io/crates/kcr_slinky_slurm_net)
405406
- [slo.koordinator.sh](https://crates.io/crates/kcr_slo_koordinator_sh)

code-generator/src/catalog.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,6 +3430,17 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
34303430
],
34313431
ignores: &[],
34323432
},
3433+
UpstreamSource {
3434+
project_name: "shipwright-io/build",
3435+
license: APACHE_V2,
3436+
urls: &[
3437+
"https://github.com/shipwright-io/build/blob/main/deploy/crds/shipwright.io_buildruns.yaml",
3438+
"https://github.com/shipwright-io/build/blob/main/deploy/crds/shipwright.io_builds.yaml",
3439+
"https://github.com/shipwright-io/build/blob/main/deploy/crds/shipwright.io_buildstrategies.yaml",
3440+
"https://github.com/shipwright-io/build/blob/main/deploy/crds/shipwright.io_clusterbuildstrategies.yaml",
3441+
],
3442+
ignores: &[],
3443+
},
34333444
UpstreamSource {
34343445
project_name: "shipwright-io/operator",
34353446
license: APACHE_V2,

0 commit comments

Comments
 (0)