Skip to content

OZ-438: Build, test and deploy using GitHub Actions #2

OZ-438: Build, test and deploy using GitHub Actions

OZ-438: Build, test and deploy using GitHub Actions #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
jobs:
validate:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
spotless:
needs: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-spotless-check.yml@main
pre-release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
release:
if: ${{ github.event_name == 'release' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
# this job notifies OCD3 of a new pre-release(snapshots)
notify-ocd3:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: pre-release
uses: mekomsolutions/shared-github-workflow/.github/workflows/ocd3-notify.yml@main
secrets:
OCD3_USERNAME: ${{ secrets.OCD3_USERNAME }}
OCD3_PASSWORD: ${{ secrets.OCD3_PASSWORD }}