Skip to content

Commit 199bb2a

Browse files
authored
Merge pull request #7 from Netcracker/feature/update_release_process
feat: Update release process
2 parents 5a9d104 + 6223848 commit 199bb2a

File tree

5 files changed

+41
-53
lines changed

5 files changed

+41
-53
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']

.github/helm-charts-release-config.yaml renamed to .github/charts-values-update-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ charts:
1313
- ghcr.io/netcracker/qubership-rabbitmq-monitoring:${release}
1414
- ghcr.io/netcracker/qubership-rabbitmq-image:${release}
1515
- ghcr.io/netcracker/qubership-rabbitmq-image-3:${release}
16-
- ghcr.io/netcracker/qubership-disaster-recovery-daemon:${drd_release}
17-
- ghcr.io/netcracker/qubership-deployment-status-provisioner:${sp_release}
16+
- ghcr.io/netcracker/qubership-disaster-recovery-daemon:#latest
17+
- ghcr.io/netcracker/qubership-deployment-status-provisioner:#latest

.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-rabbitmq-transfer",
1515
"file": "docker-transfer/Dockerfile",
16-
"context": ""
16+
"context": "."
1717
},
1818
{
1919
"name": "qubership-rabbitmq-backup-daemon",

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

Lines changed: 15 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,13 @@ on:
88
description: 'Release version'
99
required: true
1010
type: string
11-
drd_release:
12-
description: 'DRD Release version'
13-
required: true
14-
type: string
15-
sp_release:
16-
description: 'Status Provisioner Release version'
17-
required: true
18-
type: string
1911
permissions:
2012
contents: write
2113
packages: write
2214
run-name: ${{ github.repository }} Release ${{ github.event.inputs.release }}
2315
concurrency:
2416
group: ${{ github.workflow }}-${{ github.ref }}
2517
cancel-in-progress: true
26-
env:
27-
drd_release: ${{ inputs.drd_release }}
28-
sp_release: ${{ inputs.sp_release }}
2918
jobs:
3019
check-tag:
3120
runs-on: ubuntu-latest
@@ -40,7 +29,6 @@ jobs:
4029
check-tag: true
4130
env:
4231
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
4432
load-docker-build-components:
4533
runs-on: ubuntu-latest
4634
outputs:
@@ -110,28 +98,18 @@ jobs:
11098
fetch-depth: 0
11199
- name: "Update versions in values"
112100
id: update-versions
113-
uses: netcracker/qubership-workflow-hub/actions/helm-charts-release@main
101+
uses: netcracker/qubership-workflow-hub/actions/charts-values-update-action@main
114102
with:
115103
release-version: ${{ inputs.release }}
116-
config-file: .github/helm-charts-release-config.yaml
104+
config-file: .github/charts-values-update-config.yaml
117105
env:
118106
${{ insert }}: ${{ vars }}
119107
- name: "Debug"
120108
run: |
121109
echo "Images versions: ${{ steps.update-versions.outputs.images-versions }}"
122-
tag:
123-
needs: [chart-release-prepare]
124-
runs-on: ubuntu-latest
125-
steps:
126-
- name: Create release tag
127-
uses: netcracker/qubership-workflow-hub/actions/tag-action@main
128-
with:
129-
tag-name: "${{ inputs.release }}"
130-
ref: "release-${{ inputs.release }}"
131-
create-tag: true
132-
check-tag: false
110+
133111
docker-build:
134-
needs: [tag, chart-release-prepare, load-docker-build-components]
112+
needs: [chart-release-prepare, load-docker-build-components]
135113
runs-on: ubuntu-latest
136114
strategy:
137115
fail-fast: true
@@ -146,18 +124,17 @@ jobs:
146124
- name: Docker build
147125
uses: netcracker/qubership-workflow-hub/actions/docker-action@main
148126
with:
149-
ref: ${{ inputs.release }}
127+
ref: release-${{ inputs.release }}
150128
download-artifact: false
151129
dry-run: false
152130
component: ${{ toJson(matrix.component) }}
153131
platforms: ${{ needs.load-docker-build-components.outputs.platforms }}
154132
tags: "${{ env.IMAGE_VERSION }},latest"
155133
env:
156134
GITHUB_TOKEN: ${{ github.token }}
157-
158135
charts-release:
159-
needs: [tag, docker-build]
160-
continue-on-error: true
136+
needs: [docker-build]
137+
continue-on-error: false
161138
runs-on: ubuntu-latest
162139
steps:
163140
- name: Checkout code
@@ -172,10 +149,13 @@ jobs:
172149
git config user.email "[email protected]"
173150
174151
- name: Run chart-releaser
152+
#continue-on-error: true
175153
uses: netcracker/chart-releaser-action@main
176154
with:
177-
charts_dir: charts/helm
155+
charts_dir: operator/charts/helm
178156
release_name_template: "{{ .Version }}"
157+
skip_existing: true
158+
skip_upload: true
179159
env:
180160
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
181161

@@ -189,21 +169,10 @@ jobs:
189169
version: ${{ inputs.release }}
190170
env:
191171
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
192-
upload-assets:
193-
needs: [charts-release]
194-
runs-on: ubuntu-latest
195-
steps:
196-
- name: Checkout code
197-
uses: actions/checkout@v4
198-
with:
199-
ref: ${{ inputs.release }}
200-
201-
- name: Archive and Upload Assets
202-
uses: netcracker/qubership-workflow-hub/actions/archive-and-upload-assets@main
172+
- name: Upload Assets
173+
uses: netcracker/qubership-workflow-hub/actions/assets-action@main
203174
with:
204-
config-path: './.github/assets-config.yml'
205-
dist-path: './dist'
206-
upload: true
207-
ref: ${{ inputs.release }}
175+
tag: ${{ inputs.release }}
176+
item-path: .cr-release-packages/*.tgz
208177
env:
209178
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)