Shared CI configurations #48
Workflow file for this run
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: 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 |