-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.75 KB
/
merge-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: semantic release
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
semantic-release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Conventional Changelog Update
uses: TriPSs/conventional-changelog-action@v3
id: changelog
continue-on-error: true
with:
github-token: ${{ github.token }}
output-file: 'CHANGELOG.md'
skip-version-file: 'true'
skip-commit: 'true'
skip-on-empty: 'false'
git-push: 'true'
- name: Create Release
uses: softprops/action-gh-release@v1
if: ${{ steps.changelog.outputs.version != '' }}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ github.token }}
with:
token: ${{ github.token }}
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
- name: Tag Docker Image for app container
uses: shrink/actions-docker-registry-tag@v3
if: ${{ steps.changelog.outputs.version != '' }}
with:
registry: ghcr.io
repository: ${{ github.repository }}/nr-oracle-service
target: test
tags: ${{ steps.changelog.outputs.version }}
- name: Tag Docker Image for init container
uses: shrink/actions-docker-registry-tag@v3
if: ${{ steps.changelog.outputs.version != '' }}
with:
registry: ghcr.io
repository: ${{ github.repository }}/nr-oracle-service-init
target: test
tags: ${{ steps.changelog.outputs.version }}