Skip to content

Commit

Permalink
ci: updated pipeline with working tag exist check (#19)
Browse files Browse the repository at this point in the history
* 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
loboda4450 authored Jul 14, 2024
1 parent dfa0061 commit 557db92
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/lint-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ dependencies:
version: 0.8.0
repository: https://meilisearch.github.io/meilisearch-kubernetes
condition: meilisearch.enabled
version: 0.2.1
version: 0.2.2
appVersion: "2.0.2"

0 comments on commit 557db92

Please sign in to comment.