Update .woodpecker.yml
This commit is contained in:
parent
976b821e01
commit
c09a458296
1 changed files with 10 additions and 7 deletions
|
@ -2,8 +2,8 @@ pipeline:
|
||||||
docker-login:
|
docker-login:
|
||||||
image: docker
|
image: docker
|
||||||
environment:
|
environment:
|
||||||
- GITHUB_PAT
|
GITHUB_PAT: from_secret:GITHUB_PAT
|
||||||
- GITHUB_USERNAME
|
GITHUB_USERNAME: from_secret:GITHUB_USERNAME
|
||||||
commands:
|
commands:
|
||||||
- echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin
|
- echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin
|
||||||
|
|
||||||
|
@ -18,9 +18,12 @@ pipeline:
|
||||||
|
|
||||||
backend-build:
|
backend-build:
|
||||||
image: maven:3.9-eclipse-temurin-17
|
image: maven:3.9-eclipse-temurin-17
|
||||||
|
volumes:
|
||||||
|
- build:/output
|
||||||
commands:
|
commands:
|
||||||
- echo "Building backend + frontend"
|
- echo "Building backend + frontend"
|
||||||
- mvn clean install -Pprod -DskipTests
|
- mvn clean install -Pprod -DskipTests
|
||||||
|
- cp target/resilient*.jar /output/
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include:
|
include:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue