Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
- 'support/**'
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
deploy_artifacts:
description: 'Deploy artifacts to repository (for PR builds)'
required: false
default: true
type: boolean
jobs:
main:
if: "!contains(github.event.head_commit.message, '[skip bump]') && !contains(github.event.head_commit.message, 'nobump/')"
Expand Down Expand Up @@ -68,7 +75,7 @@ jobs:
- name: Setup PR version
if: contains(github.ref, '/pull/')
run: |
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}-PR-$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}-PR-$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')-SNAPSHOT"
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV

- name: Setup docker tag version
Expand Down Expand Up @@ -112,3 +119,7 @@ jobs:
- name: Upload to Repo
if: "contains(github.ref, 'master') || contains(github.ref, 'support/') || contains(github.ref, 'develop')" # In case of develop branch it will upload the snapshot version
run: mvn -B clean deploy -Pdocker-image,no-latest-tag -Dmaven.test.skip=true -Ddocker.default.tag=${{ env.DOCKER_TAG_VERSION }} -Ddocker.repo.url=repo.backbase.com -Ddocker.repo.project=backbase-stream-images -Djib.to.auth.username=${{ secrets.REPO_USERNAME }} -Djib.to.auth.password=${{ secrets.REPO_PASSWORD }} -DaltDeploymentRepository=backbase::default::https://repo.backbase.com/backbase-stream-releases/

- name: Upload PR Artifacts to Repo
if: "contains(github.ref, '/pull/') && (contains(env.NEW_VERSION, 'SNAPSHOT') || contains(env.NEW_VERSION, '-PR-'))"
run: mvn -B clean deploy -Dmaven.test.skip=true -DaltDeploymentRepository=backbase::default::https://repo.backbase.com/backbase-stream-releases/
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
<packaging>pom</packaging>
<name>Stream :: Services</name>

<distributionManagement>
<repository>
<id>backbase</id>
<name>repo.backbase.com-builds</name>
<url>https://repo.backbase.com/backbase-mvn-milestone/</url>
</repository>
<snapshotRepository>
<id>backbase</id>
<name>repo.backbase.com-builds</name>
<url>https://repo.backbase.com/backbase-mvn-snapshot/</url>
</snapshotRepository>
</distributionManagement>

<modules>
<module>stream-dbs-clients</module>
<module>stream-sdk</module>
Expand Down
Loading