OpenRS2 ruleset for versions-maven-plugin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: registry.openrs2.dev/openrs2-dev
|
|
|
|
commands:
|
|
|
|
- mvn clean verify
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: registry.openrs2.dev/openrs2-dev
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
cat <<EOF > $${HOME}/.m2/settings.xml
|
|
|
|
<settings>
|
|
|
|
<servers>
|
|
|
|
<server>
|
|
|
|
<id>openrs2</id>
|
|
|
|
<username><![CDATA[$${REPO_USERNAME}]]></username>
|
|
|
|
<password><![CDATA[$${REPO_PASSWORD}]]></password>
|
|
|
|
</server>
|
|
|
|
<server>
|
|
|
|
<id>openrs2-snapshots</id>
|
|
|
|
<username><![CDATA[$${REPO_USERNAME}]]></username>
|
|
|
|
<password><![CDATA[$${REPO_PASSWORD}]]></password>
|
|
|
|
</server>
|
|
|
|
</servers>
|
|
|
|
</settings>
|
|
|
|
EOF
|
|
|
|
- mvn deploy
|
|
|
|
environment:
|
|
|
|
REPO_USERNAME:
|
|
|
|
from_secret: repo_username
|
|
|
|
REPO_PASSWORD:
|
|
|
|
from_secret: repo_password
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|