-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.13 KB
/
release.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
name: "Release"
on:
push:
branches:
- main
paths-ignore:
- "LICENSE"
- "CHANGELOG.md"
- "manifests/base/kustomization.yaml"
tags-ignore:
- '*'
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Get release version
id: release_version
uses: python-semantic-release/python-semantic-release@master
with:
root_options: '-vv --noop'
push: false
force: false
vcs_release: false
commit: false
- name: update manifest version
run: |
echo "new version: ${{ steps.release_version.outputs.version }}"
cd manifests/base
kustomize edit set image "ghcr.io/liatrio/liatrio-dora-api:v${{ steps.release_version.outputs.version }}"
git add kustomization.yaml
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.TAGGING_TOKEN }}