Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: The great split #353

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
61 changes: 61 additions & 0 deletions .github/workflows/release-about_k8s_io.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

name: Release about_k8s_io
on:
schedule:
- cron: 14 14 * * SUN
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: commits
name: Count Commits
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/about_k8s_io)" >> $GITHUB_OUTPUT
- id: release
name: Create Release Version
if: steps.commits.outputs.count > 0
run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
- name: Set up Rust
if: steps.commits.outputs.count > 0
uses: dtolnay/rust-toolchain@stable
- name: Cargo Version
if: steps.commits.outputs.count > 0
run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' custom-resources/about_k8s_io/Cargo.toml
- name: Publish to crates.io
if: steps.commits.outputs.count > 0
run: >
cargo publish
--allow-dirty
--token ${{ secrets.CRATES_IO_TOKEN }}
--package kcr_about_k8s_io
--jobs 1
--no-verify
env:
RUSTFLAGS: "-A warnings"
- id: mail
name: Send Mail
if: steps.commits.outputs.count > 0
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: ${{ secrets.MAIL_PORT }}
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: ${{ github.event.repository.name }}/about_k8s_io version ${{ steps.release.outputs.version }} published
body: See ${{ steps.create_release.outputs.url }} for details.
to: ${{ secrets.MAIL_RECIPIENT }}
from: ${{ secrets.MAIL_SENDER }}
- id: matrix
name: Send Matrix Message
if: steps.commits.outputs.count > 0
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: ${{ github.event.repository.name }}/about_k8s_io version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
server: ${{ secrets.MATRIX_SERVER }}
61 changes: 61 additions & 0 deletions .github/workflows/release-acid_zalan_do.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

name: Release acid_zalan_do
on:
schedule:
- cron: 36 12 * * SUN
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: commits
name: Count Commits
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/acid_zalan_do)" >> $GITHUB_OUTPUT
- id: release
name: Create Release Version
if: steps.commits.outputs.count > 0
run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
- name: Set up Rust
if: steps.commits.outputs.count > 0
uses: dtolnay/rust-toolchain@stable
- name: Cargo Version
if: steps.commits.outputs.count > 0
run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' custom-resources/acid_zalan_do/Cargo.toml
- name: Publish to crates.io
if: steps.commits.outputs.count > 0
run: >
cargo publish
--allow-dirty
--token ${{ secrets.CRATES_IO_TOKEN }}
--package kcr_acid_zalan_do
--jobs 1
--no-verify
env:
RUSTFLAGS: "-A warnings"
- id: mail
name: Send Mail
if: steps.commits.outputs.count > 0
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: ${{ secrets.MAIL_PORT }}
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: ${{ github.event.repository.name }}/acid_zalan_do version ${{ steps.release.outputs.version }} published
body: See ${{ steps.create_release.outputs.url }} for details.
to: ${{ secrets.MAIL_RECIPIENT }}
from: ${{ secrets.MAIL_SENDER }}
- id: matrix
name: Send Matrix Message
if: steps.commits.outputs.count > 0
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: ${{ github.event.repository.name }}/acid_zalan_do version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
server: ${{ secrets.MATRIX_SERVER }}
61 changes: 61 additions & 0 deletions .github/workflows/release-acme_cert_manager_io.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

name: Release acme_cert_manager_io
on:
schedule:
- cron: 5 5 * * SUN
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: commits
name: Count Commits
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/acme_cert_manager_io)" >> $GITHUB_OUTPUT
- id: release
name: Create Release Version
if: steps.commits.outputs.count > 0
run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
- name: Set up Rust
if: steps.commits.outputs.count > 0
uses: dtolnay/rust-toolchain@stable
- name: Cargo Version
if: steps.commits.outputs.count > 0
run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' custom-resources/acme_cert_manager_io/Cargo.toml
- name: Publish to crates.io
if: steps.commits.outputs.count > 0
run: >
cargo publish
--allow-dirty
--token ${{ secrets.CRATES_IO_TOKEN }}
--package kcr_acme_cert_manager_io
--jobs 1
--no-verify
env:
RUSTFLAGS: "-A warnings"
- id: mail
name: Send Mail
if: steps.commits.outputs.count > 0
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: ${{ secrets.MAIL_PORT }}
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: ${{ github.event.repository.name }}/acme_cert_manager_io version ${{ steps.release.outputs.version }} published
body: See ${{ steps.create_release.outputs.url }} for details.
to: ${{ secrets.MAIL_RECIPIENT }}
from: ${{ secrets.MAIL_SENDER }}
- id: matrix
name: Send Matrix Message
if: steps.commits.outputs.count > 0
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: ${{ github.event.repository.name }}/acme_cert_manager_io version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
server: ${{ secrets.MATRIX_SERVER }}
61 changes: 61 additions & 0 deletions .github/workflows/release-acmpca_services_k8s_aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

name: Release acmpca_services_k8s_aws
on:
schedule:
- cron: 58 22 * * SUN
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: commits
name: Count Commits
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/acmpca_services_k8s_aws)" >> $GITHUB_OUTPUT
- id: release
name: Create Release Version
if: steps.commits.outputs.count > 0
run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
- name: Set up Rust
if: steps.commits.outputs.count > 0
uses: dtolnay/rust-toolchain@stable
- name: Cargo Version
if: steps.commits.outputs.count > 0
run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' custom-resources/acmpca_services_k8s_aws/Cargo.toml
- name: Publish to crates.io
if: steps.commits.outputs.count > 0
run: >
cargo publish
--allow-dirty
--token ${{ secrets.CRATES_IO_TOKEN }}
--package kcr_acmpca_services_k8s_aws
--jobs 1
--no-verify
env:
RUSTFLAGS: "-A warnings"
- id: mail
name: Send Mail
if: steps.commits.outputs.count > 0
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: ${{ secrets.MAIL_PORT }}
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: ${{ github.event.repository.name }}/acmpca_services_k8s_aws version ${{ steps.release.outputs.version }} published
body: See ${{ steps.create_release.outputs.url }} for details.
to: ${{ secrets.MAIL_RECIPIENT }}
from: ${{ secrets.MAIL_SENDER }}
- id: matrix
name: Send Matrix Message
if: steps.commits.outputs.count > 0
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: ${{ github.event.repository.name }}/acmpca_services_k8s_aws version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
server: ${{ secrets.MATRIX_SERVER }}
61 changes: 61 additions & 0 deletions .github/workflows/release-actions_github_com.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

name: Release actions_github_com
on:
schedule:
- cron: 0 0 * * SUN
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: commits
name: Count Commits
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/actions_github_com)" >> $GITHUB_OUTPUT
- id: release
name: Create Release Version
if: steps.commits.outputs.count > 0
run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
- name: Set up Rust
if: steps.commits.outputs.count > 0
uses: dtolnay/rust-toolchain@stable
- name: Cargo Version
if: steps.commits.outputs.count > 0
run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' custom-resources/actions_github_com/Cargo.toml
- name: Publish to crates.io
if: steps.commits.outputs.count > 0
run: >
cargo publish
--allow-dirty
--token ${{ secrets.CRATES_IO_TOKEN }}
--package kcr_actions_github_com
--jobs 1
--no-verify
env:
RUSTFLAGS: "-A warnings"
- id: mail
name: Send Mail
if: steps.commits.outputs.count > 0
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: ${{ secrets.MAIL_PORT }}
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: ${{ github.event.repository.name }}/actions_github_com version ${{ steps.release.outputs.version }} published
body: See ${{ steps.create_release.outputs.url }} for details.
to: ${{ secrets.MAIL_RECIPIENT }}
from: ${{ secrets.MAIL_SENDER }}
- id: matrix
name: Send Matrix Message
if: steps.commits.outputs.count > 0
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: ${{ github.event.repository.name }}/actions_github_com version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
server: ${{ secrets.MATRIX_SERVER }}
61 changes: 61 additions & 0 deletions .github/workflows/release-actions_summerwind_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

name: Release actions_summerwind_dev
on:
schedule:
- cron: 4 4 * * SUN
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: commits
name: Count Commits
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/actions_summerwind_dev)" >> $GITHUB_OUTPUT
- id: release
name: Create Release Version
if: steps.commits.outputs.count > 0
run: echo "version=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
- name: Set up Rust
if: steps.commits.outputs.count > 0
uses: dtolnay/rust-toolchain@stable
- name: Cargo Version
if: steps.commits.outputs.count > 0
run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' custom-resources/actions_summerwind_dev/Cargo.toml
- name: Publish to crates.io
if: steps.commits.outputs.count > 0
run: >
cargo publish
--allow-dirty
--token ${{ secrets.CRATES_IO_TOKEN }}
--package kcr_actions_summerwind_dev
--jobs 1
--no-verify
env:
RUSTFLAGS: "-A warnings"
- id: mail
name: Send Mail
if: steps.commits.outputs.count > 0
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: ${{ secrets.MAIL_PORT }}
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: ${{ github.event.repository.name }}/actions_summerwind_dev version ${{ steps.release.outputs.version }} published
body: See ${{ steps.create_release.outputs.url }} for details.
to: ${{ secrets.MAIL_RECIPIENT }}
from: ${{ secrets.MAIL_SENDER }}
- id: matrix
name: Send Matrix Message
if: steps.commits.outputs.count > 0
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: ${{ github.event.repository.name }}/actions_summerwind_dev version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
server: ${{ secrets.MATRIX_SERVER }}
Loading
Loading