Skip to content

NA: Bump google-github-actions/send-google-chat-webhook (#11) #15

NA: Bump google-github-actions/send-google-chat-webhook (#11)

NA: Bump google-github-actions/send-google-chat-webhook (#11) #15

Workflow file for this run

name: Build and Publish a tagged Application Image
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+'
env:
REGISTRY: ghcr.io
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Get version
id: version
run: |
echo "parsing version from ref '$GITHUB_REF'"
VERSION=$(echo "$GITHUB_REF" | sed -e 's|.*/v\(.*\)|\1|g')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- id: buildx
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Update Version
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
echo "updating version to '$VERSION'"
make update-version "VERSION=$VERSION"
- name: Build and push Image
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
make dist RELEASE_TAG=v$VERSION
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ steps.version.outputs.version }}
body: |
Docker image: `ghcr.io/oviva-ag/konnektor-watchdog:v${{ steps.version.outputs.version }}`
files: |
target/konnektor-watchdog.jar