Merge remote-tracking branch 'origin/main' #197
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Containerimage | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-maven: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- 3.8.6-openjdk-11 | |
- 3.6.3-openjdk-11 | |
- 3.8.2-openjdk-11 | |
- 3.8.6-openjdk-18 | |
- 3.8.6-openjdk-8 | |
- 3.8.6-amazoncorretto-17 | |
steps: | |
- uses: actions/checkout@v4 | |
name: checkout | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: push-container-image | |
with: | |
image: maven | |
registry: ghcr.io | |
username: ${{ github.repository }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: maven/Containerfile | |
directory: maven | |
buildArgs: VERSION=${{ matrix.version }} | |
addLatest: true | |
tags: ${{ matrix.version }} | |
build-gradle: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- 8.5-jdk11-alpine | |
steps: | |
- uses: actions/checkout@v4 | |
name: checkout | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: push-container-image | |
with: | |
image: gradle | |
registry: ghcr.io | |
username: ${{ github.repository }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: gradle/Containerfile | |
directory: gradle | |
buildArgs: VERSION=${{ matrix.version }} | |
addLatest: true | |
tags: ${{ matrix.version }} | |
build-buildah: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- v1.29 | |
steps: | |
- uses: actions/checkout@v4 | |
name: checkout | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: push-container-image | |
with: | |
image: buildah | |
registry: ghcr.io | |
username: ${{ github.repository }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: buildah/Containerfile | |
directory: buildah | |
buildArgs: VERSION=${{ matrix.version }} | |
addLatest: true | |
tags: ${{ matrix.version }} | |
build-kubectl-oc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- 4.10 | |
- 4.11 | |
- 4.12 | |
- 4.13 | |
steps: | |
- uses: actions/checkout@v4 | |
name: checkout | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: build-openshift-latest | |
with: | |
image: kubectl-oc | |
registry: ghcr.io | |
username: ${{ github.repository }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: kubectl-oc/Containerfile | |
directory: kubectl-oc | |
addLatest: true | |
tags: ${{ matrix.version }} | |
buildArgs: OC_VERSION=${{ matrix.version }} | |
build-newman: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: checkout | |
- name: source-version | |
id: source-version | |
run: echo "version=$(cat newman/version)" >> $GITHUB_OUTPUT | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: push-container-image | |
with: | |
image: newman | |
registry: ghcr.io | |
username: ${{ github.repository }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: newman/Containerfile | |
directory: newman | |
addLatest: true | |
tags: ${{ steps.source-version.outputs.version }} | |
notify: | |
name: Slack Notifications | |
runs-on: ubuntu-latest | |
if: ${{ failure() }} | |
needs: | |
- build-maven | |
- build-newman | |
- build-kubectl-oc | |
- build-buildah | |
- build-gradle | |
steps: | |
- name: Notify Slack channel on failure | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_ICON: https://avatars.githubusercontent.com/u/74975412?s=200&v=4 | |
SLACK_USERNAME: ${{ github.repository }} | |
SLACK_COLOR: '#ff0033' | |
SLACK_FOOTER: '' |