-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: updated pipeline with working tag exist check (#19)
* ci: second part of debug * ci: third one. * ci: cleanup * ci: add custom path * ci: temporary continue on error * ci: disable continue-on-error * ci: dummy version update needed for ci test * ci: step name update
- Loading branch information
1 parent
dfa0061
commit 557db92
Showing
3 changed files
with
24 additions
and
26 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 |
---|---|---|
|
@@ -32,30 +32,28 @@ jobs: | |
|
||
- name: Verify if the tag exists | ||
run: | | ||
echo "start" | ||
tags=$(git tag -l) | ||
echo "TAGS: $tags" | ||
echo "$tags" | grep -i -q ${{ env.TAG }} | ||
echo $? | ||
if [ $? -eq 0 ]; then | ||
echo "This tag (${{ env.TAG }}) already exists!" | ||
tags="$(git tag -l)" | ||
if echo "$tags" | grep -i -q "${{ env.TAG }}"; then | ||
echo "This tag ("${{ env.TAG }}") already exists!" | ||
exit 1 | ||
fi | ||
# - name: Create release | ||
# uses: ncipollo/[email protected] | ||
# with: | ||
# commit: main | ||
# tag: ${{ env.TAG }} | ||
# generateReleaseNotes: true | ||
# | ||
# - name: Release Helm Chart | ||
# uses: appany/[email protected] | ||
# with: | ||
# name: voltaserve | ||
# repository: kouprlabs/voltaserve-helm | ||
# tag: ${{ env.TAG }} | ||
# registry: ghcr.io | ||
# registry_username: ${{ github.actor }} | ||
# registry_password: ${{ github.token }} | ||
# update_dependencies: true | ||
- name: Create release | ||
uses: ncipollo/[email protected] | ||
with: | ||
commit: main | ||
tag: "${{ env.TAG }}" | ||
generateReleaseNotes: true | ||
skipIfReleaseExists: true | ||
|
||
- name: Release Helm Chart | ||
uses: appany/[email protected] | ||
with: | ||
name: voltaserve | ||
repository: kouprlabs/voltaserve-helm | ||
tag: "${{ env.TAG }}" | ||
path: . | ||
registry: ghcr.io | ||
registry_username: ${{ github.actor }} | ||
registry_password: ${{ github.token }} | ||
update_dependencies: true |
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
- name: Checkout Repository | ||
uses: Azure/[email protected] | ||
|
||
- name: Build dependencies | ||
- name: Update dependencies | ||
run: helm dependency update . | ||
|
||
- name: Lint helm chart | ||
|
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