-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathdependency-track.yaml
60 lines (51 loc) · 1.82 KB
/
dependency-track.yaml
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
53
54
55
56
57
58
59
60
package:
name: dependency-track
version: 4.10.1
epoch: 1
description:
copyright:
- license: Apache-2.0
dependencies:
runtime:
- bash
- openjdk-17-default-jvm
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- curl
- maven
- openjdk-17
- openjdk-17-default-jvm
- wolfi-base
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/DependencyTrack/dependency-track
tag: ${{package.version}}
expected-commit: fcb8e784d9b208de5ab755a979a48f2535f3c390
- runs: |
export LANG=en_US.UTF-8
# Build the API Server and the bundled UI jars
mvn clean package -P clean-exclude-wars -P enhance -P embedded-jetty \
-DskipTests -Dlogback.configuration.file=src/main/docker/logback.xml
mvn clean package -P clean-exclude-wars -P enhance -P embedded-jetty \
-P bundle-ui -DskipTests -Dlogback.configuration.file=src/main/docker/logback.xml
mkdir -p ${{targets.destdir}}/usr/share/java/dependency-track
mv target/*jar ${{targets.destdir}}/usr/share/java/dependency-track
mv src/main/docker/*.xml ${{targets.destdir}}/usr/share/java/dependency-track
subpackages:
- name: dependency-track-bundled
description: Dependency track with bundled UI
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/share/java/dependency-track
mv ${{targets.destdir}}/usr/share/java/dependency-track/dependency-track-bundled.jar ${{targets.subpkgdir}}/usr/share/java/dependency-track/
# Grab the same logging files
cp ${{targets.destdir}}/usr/share/java/dependency-track/*.xml ${{targets.subpkgdir}}/usr/share/java/dependency-track/
update:
enabled: true
github:
identifier: DependencyTrack/dependency-track