Skip to content

Commit

Permalink
INFRA-407: Use shared GitHub Actions workflow. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett authored Feb 7, 2024
1 parent f42788e commit 65f938e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 70 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/build-image.yaml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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 }}

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 }}

docker-pre-release:
needs: pre-release
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
image-name: "ozone-maintenance-page"
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

docker-release:
needs: release
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
image-name: "ozone-maintenance-page"
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
19 changes: 0 additions & 19 deletions .github/workflows/publish-to-nexus.yaml

This file was deleted.

0 comments on commit 65f938e

Please sign in to comment.