Skip to content

Commit 924c6a5

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

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.woodpecker.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
- echo ${CI_COMMIT_BRANCH}
18+
- ./gradlew jib
19+
20+
deploy:
21+
image: alpine
22+
depends_on:
23+
- publish
24+
environment:
25+
WATCHTOWER_TOKEN:
26+
from_secret: WATCHTOWER_TOKEN
27+
commands:
28+
- apk add --no-cache curl
29+
- |
30+
curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" https://togetherjava.org:5003/v1/update

0 commit comments

Comments
 (0)