forked from telicent-oss/smart-cache-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.51 KB
/
builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: SC Graph Build
on:
# Run workflow for any push to a branch or a tag
push:
branches:
- '**'
tags:
- '**'
# Allow manual triggering of the workflow
workflow_dispatch:
# Only permit one build per branch/tag, except on release branches where we want all
# builds to proceed
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: ${{ !contains(github.ref_name, 'release/') }}
jobs:
maven-build:
uses: telicent-oss/shared-workflows/.github/workflows/maven.yml@main
with:
# Some Docker based tests in this repository use public images
USES_DOCKERHUB_IMAGES: true
# Want SNAPSHOTs to be published from main
PUBLISH_SNAPSHOTS: true
MAIN_BRANCH: main
# If running in debug mode, use appropriate logging
MAVEN_DEBUG_ARGS: -Dlogback.configurationFile=logback-debug.xml
JAVA_VERSION: 21
secrets: inherit
docker-build:
strategy:
matrix:
image: [ smart-cache-graph ]
fail-fast: false
needs: maven-build
uses: telicent-oss/shared-workflows/.github/workflows/docker-push-to-registries.yml@main
with:
APP_NAME: ${{ matrix.image }}
APP_NAME_PREFIX: ""
PATH: .
DOCKERFILE: scg-docker/Dockerfile
VERSION: ${{ needs.maven-build.outputs.version }}
TARGET: ${{ matrix.image }}
JAVA_VERSION: 21
USES_MAVEN: true
DOWNLOAD_SBOM: false
BUILD_ARGS: |
PROJECT_VERSION=${{ needs.maven-build.outputs.version }}
secrets: inherit