Skip to content

Commit

Permalink
ci: switch to releaser-pleaser (#778)
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 12, 2024
1 parent 417d201 commit 96222d9
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 52 deletions.
20 changes: 0 additions & 20 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.

18 changes: 0 additions & 18 deletions .github/workflows/release-please.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/releaser-pleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Releaser-pleaser

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

jobs:
releaser-pleaser:
# Do not run on forks.
if: github.repository == 'hetznercloud/csi-driver'

runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: releaser-pleaser
uses: apricote/releaser-pleaser@v0.4.2
with:
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
extra-files: |
internal/driver/driver.go
deploy/kubernetes/hcloud-csi.yml
chart/.snapshots/default.yaml
chart/.snapshots/example-prod.yaml
chart/.snapshots/full.yaml
chart/Chart.yaml
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Upload coverage reports to Codecov
if: >
!startsWith(github.head_ref, 'renovate/') &&
!startsWith(github.head_ref, 'release-please--')
!startsWith(github.head_ref, 'releaser-pleaser--')
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions chart/.snapshots/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ spec:
limits: {}
requests: {}
- name: hcloud-csi-driver
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-releaser-pleaser-version
imagePullPolicy: IfNotPresent
command: [/bin/hcloud-csi-driver-node]
volumeMounts:
Expand Down Expand Up @@ -313,7 +313,7 @@ spec:
name: socket-dir

- name: hcloud-csi-driver
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-releaser-pleaser-version
imagePullPolicy: IfNotPresent
command: [/bin/hcloud-csi-driver-controller]
env:
Expand Down
4 changes: 2 additions & 2 deletions chart/.snapshots/example-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ spec:
cpu: 10m
memory: 20Mi
- name: hcloud-csi-driver
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-releaser-pleaser-version
imagePullPolicy: IfNotPresent
command: [/bin/hcloud-csi-driver-node]
volumeMounts:
Expand Down Expand Up @@ -424,7 +424,7 @@ spec:
name: socket-dir

- name: hcloud-csi-driver
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-releaser-pleaser-version
imagePullPolicy: IfNotPresent
command: [/bin/hcloud-csi-driver-controller]
env:
Expand Down
4 changes: 2 additions & 2 deletions chart/.snapshots/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ spec:
cpu: 12m
memory: 22Mi
- name: hcloud-csi-driver
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-releaser-pleaser-version
imagePullPolicy: Always
command: [/bin/hcloud-csi-driver-node]
volumeMounts:
Expand Down Expand Up @@ -555,7 +555,7 @@ spec:
name: socket-dir

- name: hcloud-csi-driver
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-release-please-version
image: docker.io/hetznercloud/hcloud-csi-driver:v2.10.0 # x-releaser-pleaser-version
imagePullPolicy: Always
command: [/bin/hcloud-csi-driver-controller]
env:
Expand Down
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainers:
- name: Hetzner Cloud
email: support@hetzner.com
url: https://github.com/hetznercloud
version: 2.10.0
version: 2.10.0 # x-releaser-pleaser-version
2 changes: 1 addition & 1 deletion chart/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ spec:
name: socket-dir

- name: hcloud-csi-driver
image: {{ include "common.images.image" (dict "value" .Values.controller.image.hcloudCSIDriver "context" .) }} # x-release-please-version
image: {{ include "common.images.image" (dict "value" .Values.controller.image.hcloudCSIDriver "context" .) }} # x-releaser-pleaser-version
imagePullPolicy: {{ .Values.controller.image.hcloudCSIDriver.pullPolicy }}
command: [/bin/hcloud-csi-driver-controller]
env:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/node/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ spec:
resources: {{- toYaml .Values.node.resources.livenessProbe | nindent 12 }}
{{- end }}
- name: hcloud-csi-driver
image: {{ include "common.images.image" (dict "value" .Values.node.image.hcloudCSIDriver "context" .) }} # x-release-please-version
image: {{ include "common.images.image" (dict "value" .Values.node.image.hcloudCSIDriver "context" .) }} # x-releaser-pleaser-version
imagePullPolicy: {{ .Values.node.image.hcloudCSIDriver.pullPolicy }}
command: [/bin/hcloud-csi-driver-node]
volumeMounts:
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/hcloud-csi.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package driver

const (
PluginName = "csi.hetzner.cloud"
PluginVersion = "2.10.0" // x-release-please-version
PluginVersion = "2.10.0" // x-releaser-pleaser-version

MaxVolumesPerNode = 16
MinVolumeSize = 10 // GB
Expand Down

0 comments on commit 96222d9

Please sign in to comment.