File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : create-release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ RELEASE_VERSION :
7+ description : ' Release version (e.g. 1.0.0)'
8+ required : true
9+ NEXT_DEV_VERSION :
10+ description : ' Next development version (e.g. 1.0.1-SNAPSHOT)'
11+ required : true
12+
13+ jobs :
14+ job :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : write
18+
19+ steps :
20+ - name : Init the github-actions repo
21+ uses : aerius/github-actions/init@v1.1
22+
23+ - uses : ./aerius-github-actions/extras/maven-release-action
24+ with :
25+ DEPLOY_KEY : ${{ secrets.DEPLOY_KEY }}
26+ RELEASE_VERSION : ${{ github.event.inputs.RELEASE_VERSION }}
27+ NEXT_DEV_VERSION : ${{ github.event.inputs.NEXT_DEV_VERSION }}
28+ ROOT_POM_DIRECTORY : repo/source
Original file line number Diff line number Diff line change 1- name : push-event
1+ name : code-push
22
33on :
44 push :
5+ branches :
6+ - ' main'
7+ - ' **_fixes'
58
69jobs :
710 job :
@@ -13,15 +16,13 @@ jobs:
1316
1417 - uses : ./aerius-github-actions/events/push-event-action
1518 with :
16- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1719 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
1820 NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
1921 NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
2022 ROOT_POM_DIRECTORY : repo/source
2123
2224 - uses : ./aerius-github-actions/extras/docker-build-or-publish-based-on-maven-project-version-action
2325 with :
24- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2526 DOCKER_REGISTRY_USERNAME : ${{ secrets.NEXUS_USERNAME }}
2627 DOCKER_REGISTRY_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
2728 DOCKER_IMAGE_NAME : ${{ github.event.repository.name }}
Original file line number Diff line number Diff line change 1- name : release-published-event
1+ name : new-tag
22
33on :
4- release :
5- types : [published]
4+ push :
5+ tags :
6+ - ' **'
67
78jobs :
89 job :
@@ -14,15 +15,13 @@ jobs:
1415
1516 - uses : ./aerius-github-actions/events/release-event-action
1617 with :
17- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1818 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
1919 NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
2020 NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
2121 ROOT_POM_DIRECTORY : repo/source
2222
2323 - uses : ./aerius-github-actions/extras/docker-publish-action
2424 with :
25- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2625 DOCKER_REGISTRY_USERNAME : ${{ secrets.NEXUS_USERNAME }}
2726 DOCKER_REGISTRY_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
2827 DOCKER_IMAGE_NAME : ${{ github.event.repository.name }}
Original file line number Diff line number Diff line change 1- name : pull_request-opened-synchronize-reopened-event
1+ name : pull_request-opened-synchronize-reopened
22
33on :
44 pull_request :
@@ -14,12 +14,10 @@ jobs:
1414
1515 - uses : ./aerius-github-actions/events/pull_request-event-action
1616 with :
17- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1817 ROOT_POM_DIRECTORY : repo/source
1918
2019 - uses : ./aerius-github-actions/extras/docker-build-action
2120 with :
22- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2321 DOCKER_IMAGE_NAME : ${{ github.event.repository.name }}
2422 DOCKER_WORK_DIRECTORY : repo/source
2523 DOCKER_BUILD_PLATFORMS : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments