Skip to content

Commit

Permalink
OZ-438: Use shared GitHub Actions workflows (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Feb 2, 2024
1 parent 136caa8 commit a9b75ff
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 139 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/check-deps-build-publish.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/check-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check for dependency changes

on:
workflow_dispatch:
schedule:
- cron: '*/60 * * * *'

jobs:
check-deps:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-check-deps-build-publish.yml@main
with:
java-version: "8"
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

notify-ocd3:
needs: check-deps
uses: mekomsolutions/shared-github-workflow/.github/workflows/ocd3-notify.yml@main
with:
webhook-url: ${{ secrets.OCD3_WEBHOOK_URL }}
secrets:
OCD3_USERNAME: ${{ secrets.OCD3_USERNAME }}
OCD3_PASSWORD: ${{ secrets.OCD3_PASSWORD }}
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
with:
java-version: "8"
maven-args: "-P validator" # OMRS config validation
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

pre-release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: validate
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: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
61 changes: 0 additions & 61 deletions .github/workflows/compare-dependency-reports.sh

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/validate-build-publish.yml

This file was deleted.

0 comments on commit a9b75ff

Please sign in to comment.