File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222 to {
2323 image = outputImage
2424 auth {
25- username = System . getenv(' ORG_REGISTRY_USER ' ) ?: ' '
26- password = System . getenv(' ORG_REGISTRY_PASSWORD ' ) ?: ' '
25+ username = System . getenv(' REGISTRY_USER ' ) ?: ' '
26+ password = System . getenv(' REGISTRY_PASSWORD ' ) ?: ' '
2727 }
2828 }
2929 container {
Original file line number Diff line number Diff line change 1+ when :
2+ branch :
3+ - master
4+ event : push
5+
6+ steps :
7+ publish :
8+ image : eclipse-temurin:19-jdk
9+ environment :
10+ REGISTRY_USER :
11+ from_secret : REGISTRY_USER
12+ REGISTRY_PASSWORD :
13+ from_secret : REGISTRY_PASSWORD
14+ BRANCH_NAME : ${CI_COMMIT_BRANCH}
15+ commands :
16+ - echo ${CI_COMMIT_BRANCH}
17+ - ./gradlew jib
18+
19+ deploy :
20+ image : alpine
21+ depends_on :
22+ - publish
23+ environment :
24+ WATCHTOWER_TOKEN :
25+ from_secret : WATCHTOWER_TOKEN
26+ commands :
27+ - apk add --no-cache curl
28+ - |
29+ curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" https://togetherjava.org:5003/v1/update
You can’t perform that action at this time.
0 commit comments