Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

release

release #9

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
snapshot-build:
description: 'Snapshot build?'
type: boolean
required: true
default: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Java and Maven
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'adopt'
- name: Remove SNAPSHOT
if: github.event.inputs.snapshot-build == 'false'
run: |
mvn versions:set --batch-mode -DremoveSnapshot -DprocessAllModules
- name: Build with Maven
run: mvn --batch-mode --update-snapshots --no-transfer-progress verify
- name: Release maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.PGP_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.PGP_PRIVATE_KEY_SECRET }}
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_MIRAGON_USERNAME }}
password: ${{ secrets.DOCKER_MIRAGON_PASSWORD }}
- name: Build and push bpm-server
uses: docker/build-push-action@v5
with:
context: ./bpm-server
push: true
tags: miragon/bpm-server:${{ github.ref }},miragon/bpm-server:dev