Merge pull request 'Use forgejo actions instead of drone' (#10) from feature/forgejo-actions into main
All checks were successful
/ maven-build (push) Successful in 41s
All checks were successful
/ maven-build (push) Successful in 41s
Reviewed-on: #10
This commit is contained in:
commit
a44f8a5923
3 changed files with 23 additions and 72 deletions
72
.drone.yml
72
.drone.yml
|
|
@ -1,72 +0,0 @@
|
||||||
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
|
|
||||||
22
.forgejo/workflows/maven-build.yaml
Normal file
22
.forgejo/workflows/maven-build.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
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,6 +3,7 @@
|
||||||
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