Skip to content

[maven-release-plugin] prepare release operator-0.3.1 #12

[maven-release-plugin] prepare release operator-0.3.1

[maven-release-plugin] prepare release operator-0.3.1 #12

name: Release Operator
on:
push:
tags:
- 'operator-*'
jobs:
release-operator:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
mvn clean install -DskipTests -Pskip-crds
docker_tag=${GITHUB_REF/refs\/tags\/operator-/}
docker tag datastax/kaap:latest-dev datastax/kaap:$docker_tag
docker tag datastax/kaap:latest-dev datastax/kaap:latest
docker push datastax/kaap:$docker_tag
docker push datastax/kaap:latest
- uses: ncipollo/release-action@v1
with:
artifacts: "migration-tool/target/kaap-migration-tool-*.jar,helm/kaap/crds/*.yml"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true