Skip to content

Commit

Permalink
feat: release-please config update
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Canovai <[email protected]>
  • Loading branch information
fcanovai committed Dec 16, 2024
1 parent 148873a commit 432a56f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ jobs:
DAGGER_VERSION: 0.14.0
run: |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- name: Create image and manifest
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
task publish
task manifest
- name: Attach manifest to workflow run
uses: actions/upload-artifact@v4
with:
name: manifest.yaml
path: ./manifest.yaml
# - name: Create image and manifest
# env:
# REGISTRY_USER: ${{ github.actor }}
# REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
# run: |
# task publish
# task manifest
# - name: Attach manifest to workflow run
# uses: actions/upload-artifact@v4
# with:
# name: manifest.yaml
# path: ./manifest.yaml
# TODO: remove bump-minor-pre-major when in production. It prevents
# release-please from bumping the major version on breaking changes.
# TODO: remove release-as after first release. Used to set the first
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ Both checks are necessary to proceed with the installation.

Use `kubectl` to apply the manifest for the latest commit in the `main` branch:

<!-- x-release-please-start-version -->
```sh
kubectl apply -f \
https://github.com/cloudnative-pg/plugin-barman-cloud/releases/download/v0.1.0/manifest.yaml
```
<!-- x-release-please-end -->

Example output:

Expand Down
4 changes: 3 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"extra-files": [
"README.md"
],
"prerelease": false,
"packages": {
".": {}
},
"plugins": [ "sentence-case" ],
"release-as": "0.1.0",
"signoff": "Peggie <[email protected]>",
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit 432a56f

Please sign in to comment.