Skip to content
Merged
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
28 changes: 28 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: create-release

on:
workflow_dispatch:
inputs:
RELEASE_VERSION:
description: 'Release version (e.g. 1.0.0)'
required: true
NEXT_DEV_VERSION:
description: 'Next development version (e.g. 1.0.1-SNAPSHOT)'
required: true

jobs:
job:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Init the github-actions repo
uses: aerius/github-actions/init@v1.1

- uses: ./aerius-github-actions/extras/maven-release-action
with:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
RELEASE_VERSION: ${{ github.event.inputs.RELEASE_VERSION }}
NEXT_DEV_VERSION: ${{ github.event.inputs.NEXT_DEV_VERSION }}
ROOT_POM_DIRECTORY: repo/source
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: push-event
name: code-push

on:
push:
branches:
- 'main'
- '**_fixes'

jobs:
job:
Expand All @@ -13,15 +16,13 @@ jobs:

- uses: ./aerius-github-actions/events/push-event-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
ROOT_POM_DIRECTORY: repo/source

- uses: ./aerius-github-actions/extras/docker-build-or-publish-based-on-maven-project-version-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY_USERNAME: ${{ secrets.NEXUS_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: release-published-event
name: new-tag

on:
release:
types: [published]
push:
tags:
- '**'

jobs:
job:
Expand All @@ -14,15 +15,13 @@ jobs:

- uses: ./aerius-github-actions/events/release-event-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
ROOT_POM_DIRECTORY: repo/source

- uses: ./aerius-github-actions/extras/docker-publish-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY_USERNAME: ${{ secrets.NEXUS_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pull_request-opened-synchronize-reopened-event
name: pull_request-opened-synchronize-reopened

on:
pull_request:
Expand All @@ -14,12 +14,10 @@ jobs:

- uses: ./aerius-github-actions/events/pull_request-event-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ROOT_POM_DIRECTORY: repo/source

- uses: ./aerius-github-actions/extras/docker-build-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}
DOCKER_WORK_DIRECTORY: repo/source
DOCKER_BUILD_PLATFORMS: linux/amd64,linux/arm64
Loading