Skip to content

Commit

Permalink
CI/CD configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dywicki <[email protected]>
  • Loading branch information
splatch committed Jan 29, 2024
1 parent b730528 commit 5572176
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build pull request

on:
pull_request:
branches: [ "master" ]

jobs:
build:
permissions:
checks: write
contents: read
uses: 'connectorio/gh-actions-shared/.github/workflows/maven.yml@master'
secrets:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
with:
openhab: false
server_id: thing4-snapshots
deploy: true
skip_test_publish: true
21 changes: 21 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build pushed commit

on:
push:
branches: [ "master" ]

jobs:
build:
#if: ${{ true }}
permissions:
checks: write
contents: read
uses: 'connectorio/gh-actions-shared/.github/workflows/maven.yml@master'
secrets:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
with:
openhab: false
server_id: thing4-snapshots
deploy: true
skip_test_publish: true
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release artifacts

on:
workflow_dispatch:
inputs:
release_version:
description: 'The version to be released from actual HEAD revision'
required: false
default: 'X.Y.Z'
development_version:
description: 'Version to be set as next, after release is made (appends commit to HEAD revision)'
required: false
default: 'X.Y.Z-SNAPSHOT'
perform_version:
description: 'Tag which should be used to perform release and publish its artifacts'
required: false
dry_run:
description: 'Should execution abstain from mutating repository/remote state?'
required: true
default: 'true'

jobs:
build:
uses: 'connectorio/gh-actions-shared/.github/workflows/release.yml@master'
secrets:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
CI_RELEASE_USERNAME: ${{ secrets.CI_RELEASE_USERNAME }}
CI_RELEASE_PASSWORD: ${{ secrets.CI_RELEASE_PASSWORD }}
with:
openhab: false
release_version: ${{ inputs.release_version }}
development_version: ${{ inputs.development_version }}
perform_version: ${{ inputs.perform_version }}
dry_run: ${{ inputs.dry_run }}

0 comments on commit 5572176

Please sign in to comment.