Skip to content

Commit 1538f62

Browse files
authored
Merge pull request #59 from Netcracker/feature/update_release_process
feat: Release process update
2 parents 5910a9a + 593be40 commit 1538f62

File tree

5 files changed

+39
-40
lines changed

5 files changed

+39
-40
lines changed

.github/assets-config.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/auto-labeler-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
conventional-commits:
3+
- type: 'fix'
4+
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
5+
labels: ['bug']
6+
- type: 'feature'
7+
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
8+
labels: ['enhancement']
9+
- type: 'breaking_change'
10+
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
11+
labels: ['breaking-change']
12+
- type: 'refactor'
13+
nouns: ['refactor', 'Refactor']
14+
labels: ['refactor']
15+
- type: 'documentation'
16+
nouns: ['docs', 'doc', 'document', 'documentation']
17+
labels: ['documentation']
18+
- type: 'build'
19+
nouns: ['build', 'rebuild']
20+
labels: ['build']
21+
- type: 'config'
22+
nouns: ['config', 'conf', 'configuration', 'configure']
23+
labels: ['config']
File renamed without changes.

.github/docker-build-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{
1414
"name": "qubership-zookeeper-transfer",
1515
"file": "docker-transfer/Dockerfile",
16-
"context": ""
16+
"context": "."
1717
},
1818
{
1919
"name": "qubership-zookeeper-backup-daemon",

.github/workflows/helm-charts-release.yaml

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
check-tag: true
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
3332
load-docker-build-components:
3433
runs-on: ubuntu-latest
3534
outputs:
@@ -99,28 +98,18 @@ jobs:
9998
fetch-depth: 0
10099
- name: "Update versions in values"
101100
id: update-versions
102-
uses: netcracker/qubership-workflow-hub/actions/helm-charts-release@main
101+
uses: netcracker/qubership-workflow-hub/actions/charts-values-update-action@main
103102
with:
104103
release-version: ${{ inputs.release }}
105-
config-file: .github/helm-charts-release-config.yaml
104+
config-file: .github/charts-values-update-config.yaml
106105
env:
107106
${{ insert }}: ${{ vars }}
108107
- name: "Debug"
109108
run: |
110109
echo "Images versions: ${{ steps.update-versions.outputs.images-versions }}"
111-
tag:
112-
needs: [chart-release-prepare]
113-
runs-on: ubuntu-latest
114-
steps:
115-
- name: Create release tag
116-
uses: netcracker/qubership-workflow-hub/actions/tag-action@main
117-
with:
118-
tag-name: "${{ inputs.release }}"
119-
ref: "release-${{ inputs.release }}"
120-
create-tag: true
121-
check-tag: false
110+
122111
docker-build:
123-
needs: [tag, chart-release-prepare, load-docker-build-components]
112+
needs: [chart-release-prepare, load-docker-build-components]
124113
runs-on: ubuntu-latest
125114
strategy:
126115
fail-fast: true
@@ -135,18 +124,17 @@ jobs:
135124
- name: Docker build
136125
uses: netcracker/qubership-workflow-hub/actions/docker-action@main
137126
with:
138-
ref: ${{ inputs.release }}
127+
ref: release-${{ inputs.release }}
139128
download-artifact: false
140129
dry-run: false
141130
component: ${{ toJson(matrix.component) }}
142131
platforms: ${{ needs.load-docker-build-components.outputs.platforms }}
143132
tags: "${{ env.IMAGE_VERSION }},latest"
144133
env:
145134
GITHUB_TOKEN: ${{ github.token }}
146-
147135
charts-release:
148-
needs: [tag, docker-build]
149-
continue-on-error: true
136+
needs: [docker-build]
137+
continue-on-error: false
150138
runs-on: ubuntu-latest
151139
steps:
152140
- name: Checkout code
@@ -161,10 +149,13 @@ jobs:
161149
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
162150
163151
- name: Run chart-releaser
152+
#continue-on-error: true
164153
uses: netcracker/chart-releaser-action@main
165154
with:
166155
charts_dir: operator/charts/helm
167156
release_name_template: "{{ .Version }}"
157+
skip_existing: true
158+
skip_upload: true
168159
env:
169160
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
170161

@@ -178,21 +169,10 @@ jobs:
178169
version: ${{ inputs.release }}
179170
env:
180171
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181-
upload-assets:
182-
needs: [charts-release]
183-
runs-on: ubuntu-latest
184-
steps:
185-
- name: Checkout code
186-
uses: actions/checkout@v4
172+
- name: Upload Assets
173+
uses: netcracker/qubership-workflow-hub/actions/assets-action@main
187174
with:
188-
ref: ${{ inputs.release }}
189-
190-
- name: Archive and Upload Assets
191-
uses: netcracker/qubership-workflow-hub/actions/archive-and-upload-assets@main
192-
with:
193-
config-path: './.github/assets-config.yml'
194-
dist-path: './dist'
195-
upload: true
196-
ref: ${{ inputs.release }}
175+
tag: ${{ inputs.release }}
176+
item-path: .cr-release-packages/*.tgz
197177
env:
198-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
178+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)