Skip to content

Commit

Permalink
ci: switch to releaser-pleaser (#804)
Browse files Browse the repository at this point in the history
Switch to releaser-pleaser[0] for planning new releases.
This adds the following new features:

- We can easily cut pre-releases, these are always useful if we want to
allow some customers to test features before making an official release
or to validate changes made to the release CI workflows
- We can add our own release notes to each release to better inform
customers about the new features we added or about any deprecations.

[0] https://github.com/apricote/releaser-pleaser
  • Loading branch information
apricote authored Nov 25, 2024
1 parent 0bf6746 commit 7553f4c
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 31 deletions.
17 changes: 0 additions & 17 deletions .github/release-please-config.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/release-please-manifest.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: codecov/codecov-action@v5
if: >
!startsWith(github.head_ref, 'renovate/') &&
!startsWith(github.head_ref, 'release-please--')
!startsWith(github.head_ref, 'releaser-pleaser--')
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: Release-please
name: Releaser-pleaser

on:
push:
branches: [main]
pull_request_target:
types:
- edited
- labeled
- unlabeled

jobs:
release-please:
releaser-pleaser:
# Do not run on forks.
if: github.repository == 'hetznercloud/hcloud-cloud-controller-manager'

runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: googleapis/release-please-action@v4
- name: releaser-pleaser
uses: apricote/[email protected]
with:
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
extra-files: |
deploy/ccm-networks.yaml
deploy/ccm.yaml
chart/Chart.yaml
2 changes: 1 addition & 1 deletion .github/workflows/test_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: codecov/codecov-action@v5
if: >
!startsWith(github.head_ref, 'renovate/') &&
!startsWith(github.head_ref, 'release-please--')
!startsWith(github.head_ref, 'releaser-pleaser--')
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion chart/.snapshots/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
key: robot-user
name: hcloud
optional: true
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-releaser-pleaser-version
ports:
- name: metrics
containerPort: 8233
Expand Down
2 changes: 1 addition & 1 deletion chart/.snapshots/full.daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec:
key: robot-user
name: hcloud
optional: true
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-releaser-pleaser-version
ports:
- name: metrics
containerPort: 8233
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
- name: ROBOT_ENABLED
value: "true"
{{- end }}
image: {{ $.Values.image.repository }}:{{ tpl $.Values.image.tag . }} # x-release-please-version
image: {{ $.Values.image.repository }}:{{ tpl $.Values.image.tag . }} # x-releaser-pleaser-version
ports:
{{- if $.Values.monitoring.enabled }}
- name: metrics
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
- name: ROBOT_ENABLED
value: "true"
{{- end }}
image: {{ $.Values.image.repository }}:{{ tpl $.Values.image.tag . }} # x-release-please-version
image: {{ $.Values.image.repository }}:{{ tpl $.Values.image.tag . }} # x-releaser-pleaser-version
ports:
{{- if $.Values.monitoring.enabled }}
- name: metrics
Expand Down
2 changes: 1 addition & 1 deletion deploy/ccm-networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
secretKeyRef:
key: network
name: hcloud
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-releaser-pleaser-version
ports:
- name: metrics
containerPort: 8233
Expand Down
2 changes: 1 addition & 1 deletion deploy/ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
key: robot-user
name: hcloud
optional: true
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-cloud-controller-manager:v1.20.0 # x-releaser-pleaser-version
ports:
- name: metrics
containerPort: 8233
Expand Down

0 comments on commit 7553f4c

Please sign in to comment.