Skip to content

Commit 408cab0

Browse files
committed
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
2 parents d15aeff + d2cf4b1 commit 408cab0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ stages:
22
- check
33
- build
44
- test
5+
- publish
56
- sync
67

78
check-code:
@@ -52,6 +53,13 @@ test-code:
5253
- "mls/build/test-results/**/*.xml"
5354

5455

56+
publish:
57+
stage: publish
58+
script:
59+
- "apply_overlay bc-java-pub ./"
60+
- "ecr_login"
61+
- "ecr_pull vm_base_intel latest"
62+
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/pub.sh\""
5563

5664
spongycastle:
5765
stage: "sync"

ci/pub.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
#
6+
# This script is for running inside the docker container
7+
#
8+
9+
cd /workspace/bc-java
10+
source ci/common.sh
11+
12+
13+
14+
export JAVA_HOME=`openjdk_21`
15+
export PATH=$JAVA_HOME/bin:$PATH
16+
17+
18+
./gradlew clean build publishAllPublicationsToCwmavenRepository -x test
19+
20+

0 commit comments

Comments
 (0)