-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged two workflows in one file (#128)
- Loading branch information
Showing
2 changed files
with
29 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,32 @@ jobs: | |
version: latest | ||
args: release -f .goreleaser.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
- name: getting Tag name | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
|
||
- name: Editing helm-release repo with version based on a Tag pushed. | ||
run: | | ||
# Setting up Git: | ||
git clone https://kubeshop-bot:[email protected]/kubeshop/helm-charts | ||
cd ./helm-charts | ||
git config user.name "kubeshop-bot" | ||
git config user.email "[email protected]" | ||
# Calling chart releaser script by passing needed folder name: | ||
# E.G. in order to relase api-server": | ||
# -->> ./chart_releaser.sh --helm-chart-folder api-server | ||
export GH_PUSH_TOKEN | ||
export RELEASE_VERSION | ||
cd ./scripts | ||
./chart_releaser.sh --helm-chart-folder testkube-operator --main-chart false | ||
env: | ||
GH_PUSH_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }} |
This file was deleted.
Oops, something went wrong.