Skip to content

Commit 815e545

Browse files
committed
feat: add .woodpecker.yml
1 parent b60d263 commit 815e545

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.woodpecker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
when:
2+
branch: [develop, master]
3+
event: push
4+
5+
steps:
6+
publish:
7+
image: eclipse-temurin:25-jdk
8+
environment:
9+
REGISTRY_USER:
10+
from_secret: REGISTRY_USER
11+
REGISTRY_PASSWORD:
12+
from_secret: REGISTRY_PASSWORD
13+
BRANCH_NAME: ${CI_COMMIT_BRANCH}
14+
commands:
15+
- ./gradlew jib
16+
17+
redeploy:
18+
image: alpine
19+
depends_on: [publish]
20+
environment:
21+
WATCHTOWER_TOKEN:
22+
from_secret: WATCHTOWER_TOKEN
23+
commands:
24+
- apk add --no-cache curl
25+
- "curl -H 'Authorization: Bearer $WATCHTOWER_TOKEN' https://togetherjava.org:5003/v1/update"
26+

0 commit comments

Comments
 (0)