Skip to content

Commit 3ccbf30

Browse files
authored
merged two workflows in one file (#128)
1 parent 9358c01 commit 3ccbf30

File tree

2 files changed

+29
-42
lines changed

2 files changed

+29
-42
lines changed

.github/workflows/docker-build.yaml

+29-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,32 @@ jobs:
3030
version: latest
3131
args: release -f .goreleaser.yml
3232
env:
33-
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
34+
35+
- name: getting Tag name
36+
id: vars
37+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
38+
39+
- name: Editing helm-release repo with version based on a Tag pushed.
40+
run: |
41+
42+
# Setting up Git:
43+
44+
git clone https://kubeshop-bot:[email protected]/kubeshop/helm-charts
45+
cd ./helm-charts
46+
git config user.name "kubeshop-bot"
47+
git config user.email "[email protected]"
48+
49+
# Calling chart releaser script by passing needed folder name:
50+
# E.G. in order to relase api-server":
51+
# -->> ./chart_releaser.sh --helm-chart-folder api-server
52+
53+
export GH_PUSH_TOKEN
54+
export RELEASE_VERSION
55+
56+
cd ./scripts
57+
./chart_releaser.sh --helm-chart-folder testkube-operator --main-chart false
58+
59+
env:
60+
GH_PUSH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
61+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}

.github/workflows/testkube_operator_helm-releaser.yaml

-41
This file was deleted.

0 commit comments

Comments
 (0)