Skip to content

Commit 1674daf

Browse files
authored
feat: add .woodpecker.yml (#30)
* feat: add .woodpecker.yml * chore: delete docker-publish.yaml * chore: remove _ORG from REGISTRY_USER and REGISTRY_PASSWORD
1 parent 736586b commit 1674daf

File tree

3 files changed

+31
-36
lines changed

3 files changed

+31
-36
lines changed

.github/workflows/docker-publish.yaml

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

website/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jib {
2222
to {
2323
image = outputImage
2424
auth {
25-
username = System.getenv('ORG_REGISTRY_USER') ?: ''
26-
password = System.getenv('ORG_REGISTRY_PASSWORD') ?: ''
25+
username = System.getenv('REGISTRY_USER') ?: ''
26+
password = System.getenv('REGISTRY_PASSWORD') ?: ''
2727
}
2828
}
2929
container {

‎.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:19-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)