Skip to content

Commit ffb8cfb

Browse files
authored
feat: add .woodpecker.yml (#75)
* feat: add .woodpecker.yml * chore: remove docker-publish.yaml
1 parent 4fb5436 commit ffb8cfb

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

.github/workflows/docker-publish.yaml

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

‎.woodpecker.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
when:
2+
branch:
3+
- master
4+
event: push
5+
6+
steps:
7+
publish:
8+
image: eclipse-temurin:21-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

0 commit comments

Comments
 (0)