@@ -14,25 +14,16 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
- - name : get-latest-version
18
- uses : miniscruff/changie-action@v2
19
- with :
20
- version : latest
21
- args : latest
22
- - name : get-latest-no-v-version
23
- uses : miniscruff/changie-action@v2
24
- with :
25
- version : latest
26
- # Echoes the same version as previous step, but without "v" prefix.
27
- # Is used as a docker image tag in the release step.
28
- # E.g. "v0.5.31" -> "0.5.31"
29
- args : latest --remove-prefix
17
+ - name : parse-version-from-chart
18
+ run : |
19
+ VERSION=$(cat ./deploy/ydb-operator/Chart.yaml | sed -n 's/^version: //p')
20
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
30
21
31
22
- name : create-tag
32
23
uses : mathieudutour/github-tag-action@v6.2
33
24
with :
34
- tag_prefix : " "
35
- custom_tag : ${{ steps.get-latest-version.outputs.output }}
25
+ tag_prefix : " v "
26
+ custom_tag : " $VERSION "
36
27
github_token : ${{ github.token }}
37
28
38
29
- name : install-dependencies
67
58
yc config --profile private-docker-helm-public-docker set service-account-key sa-key.json
68
59
env :
69
60
SA_KEYS_FOR_PRIVATE_DOCKER_HELM_AND_PUBLIC_DOCKER : ${{ secrets.SA_KEYS_FOR_PRIVATE_DOCKER_HELM_AND_PUBLIC_DOCKER }}
70
- - name : parse-version-from-chart
71
- run : |
72
- VERSION=$(cat ./deploy/ydb-operator/Chart.yaml | sed -n 's/^version: //p')
73
- echo "VERSION=$VERSION" >> $GITHUB_ENV
74
61
- name : login-to-registries
75
62
run : |
76
63
cat sa-key.json | docker login --username json_key --password-stdin cr.yandex
0 commit comments