mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
name: release-please
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
release-please:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
packages: write
|
|
steps:
|
|
# TODO: googleapis/release-please-action cannot sign commits yet.
|
|
# We'll use the cli until there's a fix for
|
|
# https://github.com/googleapis/release-please/issues/2280.
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Install node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- name: Install QEMU static binaries
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v2
|
|
- name: Install Dagger
|
|
env:
|
|
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver
|
|
DAGGER_VERSION: 0.18.18
|
|
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
|
|
# TODO: remove bump-minor-pre-major when in production. It prevents
|
|
# release-please from bumping the major version on breaking changes.
|
|
# We use a GitHub token with write permissions to create the release,
|
|
# otherwise we won't be able to trigger a new run when pushing on main.
|
|
- name: Run release-please
|
|
run: |
|
|
npx release-please release-pr \
|
|
--token="${{ secrets.REPO_PAT }}" \
|
|
--repo-url="${{ github.repository }}"
|
|
npx release-please github-release \
|
|
--token="${{ secrets.REPO_PAT }}" \
|
|
--repo-url="${{ github.repository }}"
|