parent
6c3087277a
commit
f7f9243644
3 changed files with 20 additions and 4 deletions
|
@ -2,7 +2,7 @@ when:
|
|||
instance: ci.kokuwa.io
|
||||
repo: keycloak/keycloak-event-metrics
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
branch: main1
|
||||
path: [.woodpecker/dockerhub.yaml, README.md]
|
||||
|
||||
steps:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
when:
|
||||
event: [manual, pull_request, push]
|
||||
branch: main
|
||||
branch: main1
|
||||
path: [.woodpecker/lint.yaml, renovate.json, Dockerfile, "**/*.y*ml", "**/*.md"]
|
||||
|
||||
steps:
|
||||
|
|
|
@ -16,9 +16,16 @@ steps:
|
|||
- git config user.signingkey /run/secrets/sign.key
|
||||
- echo $GIT_SIGN_KEY > /run/secrets/sign.key
|
||||
# release
|
||||
- mvn release:prepare # release:perform
|
||||
# - mvn release:prepare release:perform
|
||||
# write version to env file for image
|
||||
- echo "VERSION=$(grep "scm.tag=" release.properties | cut -d= -f2)" > ${CI_WORKSPACE}/maven.env
|
||||
- echo "#sdfsdf" > release.properties
|
||||
- echo "foo=bar" > release.properties
|
||||
- echo "scm.tag=dev" > release.properties
|
||||
- echo "scm.sdf=bar" > release.properties
|
||||
- echo "VERSION=$(grep "scm.tag=" release.properties | cut -d= -f2)" > ${CI_WORKSPACE}/maven.env
|
||||
- pwd
|
||||
- ls -lA
|
||||
- cat ${CI_WORKSPACE}/maven.env
|
||||
environment:
|
||||
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
|
||||
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
||||
|
@ -28,8 +35,17 @@ steps:
|
|||
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
||||
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
||||
|
||||
echo:
|
||||
image: kokuwaio/buildctl
|
||||
pull: true
|
||||
commands:
|
||||
- pwd
|
||||
- ls -lA
|
||||
- cat ${CI_WORKSPACE}/maven.env
|
||||
|
||||
image:
|
||||
image: kokuwaio/buildctl
|
||||
pull: true
|
||||
settings:
|
||||
env-file: ${CI_WORKSPACE}/maven.env
|
||||
name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue