Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

fix: Release fix (#14) #4

fix: Release fix (#14)

fix: Release fix (#14) #4

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
# skip releases on forks
if: github.repository == 'kurtosis-tech/kardinal-operator'
steps:
- name: Run Release Please
id: release
uses: googleapis/release-please-action@v3
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: simple
package-name: kardinal-operator
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
include-v-in-tag: false
build-and-publish-artifacts:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Kardinal Operator image
run: make docker-buildx IMG=kurtosistech/kardinal-operator:latest