Skip to content

Commit 9a1229e

Browse files
tj-wazeisurajkumar
andauthored
feat: add .woodpecker.yml (#1410)
* feat: add .woodpecker.yml * chore: delete docker-publish.yaml# --------- Co-authored-by: Suraj Kumar <sk96.uk@gmail.com>
1 parent b60d263 commit 9a1229e

File tree

2 files changed

+30
-34
lines changed

2 files changed

+30
-34
lines changed

.github/workflows/docker-publish.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.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)