Skip to content

Bump com.hazelcast:hazelcast from 5.0.5 to 5.5.0 (#39) #6

Bump com.hazelcast:hazelcast from 5.0.5 to 5.5.0 (#39)

Bump com.hazelcast:hazelcast from 5.0.5 to 5.5.0 (#39) #6

Workflow file for this run

name: Create Release
on:
push:
branches:
- 'release-*'
# env:
# REGISTRY: ghcr.io
# ALTERNATE_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
# IMAGE_NAME: ${{ github.repository }}
# SONAR_URL: https://sonarcloud.io
# SONAR_ORG: grrolland-github
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get tag name
id: get_tag_name
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/heads\/release-/}
##
# Perform Maven Release
#
- uses: actions/checkout@v4
with:
ref: master
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Configure Git user
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
- name: Perform Release
run: mvn -B -Dtag=${GITHUB_REF##*release-} release:prepare release:perform
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
##
# Checkout and Build the Tag
#
- uses: actions/checkout@v4
with:
ref: ${{ steps.get_tag_name.outputs.VERSION }}
- name: Build Tag
run: |
mvn clean \
org.jacoco:jacoco-maven-plugin:prepare-agent \
package \
org.jacoco:jacoco-maven-plugin:report \
-B -e -V
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
##
# Publish to Github Docker Registry
#
# - name: Log in to the Container registry
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# tags: |
# ${{ steps.get_tag_name.outputs.VERSION }}
# latest
# - name: Build and push Docker image
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
##
# Publish to Alternate Docker Registry
#
# - name: Log in to the Container registry
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
# with:
# registry: ${{ env.ALTERNATE_REGISTRY }}
# username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
# password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta_alt
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
# with:
# images: ${{ env.ALTERNATE_REGISTRY }}/${{ env.IMAGE_NAME }}
# tags: |
# ${{ steps.get_tag_name.outputs.VERSION }}
# latest
# - name: Build and push Docker image
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
# with:
# context: .
# push: true
# tags: ${{ steps.meta_alt.outputs.tags }}
# labels: ${{ steps.meta_alt.outputs.labels }}
##
# Create a Github Release
#
- uses: ncipollo/release-action@v1
with:
body: Release version ${{ steps.get_tag_name.outputs.VERSION }}
tag: ${{ steps.get_tag_name.outputs.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}