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