Skip to content

Commit ac53ae7

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

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.woodpecker.yml

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

0 commit comments

Comments
 (0)