Compare commits
No commits in common. "a44f8a5923f6e9162fa57db3c11791acb958de5e" and "4e1ccfeead05cff731f34484f96b9b78f349c45f" have entirely different histories.
a44f8a5923
...
4e1ccfeead
3 changed files with 72 additions and 23 deletions
72
.drone.yml
Normal file
72
.drone.yml
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: maven:3.9-eclipse-temurin-25
|
||||||
|
commands:
|
||||||
|
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
include:
|
||||||
|
- refs/heads/main
|
||||||
|
- refs/heads/feature/**
|
||||||
|
- refs/tags/**
|
||||||
|
- name: test
|
||||||
|
image: maven:3.9-eclipse-temurin-25
|
||||||
|
commands:
|
||||||
|
- mvn test -B
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
- feature/*
|
||||||
|
# - name: deploy
|
||||||
|
# image: maven:3.9-eclipse-temurin-25
|
||||||
|
# environment:
|
||||||
|
# REPO_TOKEN:
|
||||||
|
# from_secret: repo-token
|
||||||
|
# REPO_TOKEN_OSSRH:
|
||||||
|
# from_secret: repo-token-ossrh
|
||||||
|
# commands:
|
||||||
|
# - mvn -s maven-settings.xml deploy -DskipTests=true
|
||||||
|
# when:
|
||||||
|
# branch:
|
||||||
|
# - main
|
||||||
|
# event:
|
||||||
|
# exclude:
|
||||||
|
# - pull_request
|
||||||
|
- name: build_docker_image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: gittr.ch
|
||||||
|
username: manuel
|
||||||
|
password:
|
||||||
|
from_secret: docker-token
|
||||||
|
repo: gittr.ch/java/a-maze-r
|
||||||
|
tags:
|
||||||
|
- latest-snapshot
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
|
- tag
|
||||||
|
- name: build_docker_image_release
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: gittr.ch
|
||||||
|
username: manuel
|
||||||
|
password:
|
||||||
|
from_secret: docker-token
|
||||||
|
repo: gittr.ch/java/a-maze-r
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- tag
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
maven-build:
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:25-trixie
|
|
||||||
steps:
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 25
|
|
||||||
- name: Install maven
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y maven
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
- name: Run maven build
|
|
||||||
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
|
||||||
- name: Run tests
|
|
||||||
run: mvn test -B
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
|
||||||
xmlns="http://maven.apache.org/SETTINGS/1.1.0">
|
xmlns="http://maven.apache.org/SETTINGS/1.1.0">
|
||||||
<servers>
|
<servers>
|
||||||
<!-- obsolete -->
|
|
||||||
<server>
|
<server>
|
||||||
<id>repo.gittr.ch</id>
|
<id>repo.gittr.ch</id>
|
||||||
<username>ci</username>
|
<username>ci</username>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue