Skip to content

Shared CI configurations #48

Shared CI configurations

Shared CI configurations #48

Workflow file for this run

name: Java Workflow
on:
push:
branches:
# Run on our main branch
- main
paths:
- java-demo/**
pull_request:
# Run for any pull requests
# paths:
# - java-demo/**
release:
types: [created]
jobs:
java-linting:
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-java-lint.yml@feature/shared-ci
with:
context: java-demo
java-testing:
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-java-test.yml@feature/shared-ci
with:
context: java-demo
container-image-build:
needs: [java-linting, java-testing]
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-container-image.yml@feature/shared-ci
with:
context: java-demo
image-path: ghcr.io/british-oceanographic-data-centre/amrit-repos/java/app
container-image-security:
needs: [container-image-build]
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-container-image-security.yml@feature/shared-ci
with:
context: java-demo
image-path: ghcr.io/british-oceanographic-data-centre/amrit-repos/java/app