Skip to content

Commit

Permalink
Merge pull request #172 from spidernet-io/pr/welan/flowsdk
Browse files Browse the repository at this point in the history
CI: check tag and VERSION is same
  • Loading branch information
weizhoublue authored Apr 27, 2022
2 parents efd1c04 + 860cafa commit 7a4d3fa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/auto-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ jobs:
exit 1
fi
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ steps.get_ref.outputs.tag }}

- name: Check Version
run: |
TagVersion="${{ steps.get_ref.outputs.tag }}"
RecordVersion=` cat VERSION | tr -d ' ' | tr -d '\n' `
if [ "$RecordVersion" != "$TagVersion" ] ; then
echo "error, version $RecordVersion of '/VERSION' is different with Tag $TagVersion "
exit 1
fi
#no need to check chart version, which will auto update to /VERSION by CI
build-release-image:
needs: get-tag
uses: ./.github/workflows/call-release-image.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/call-lint-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
# version checking, YAML schema validation on 'Chart.yaml', YAML linting on 'Chart.yaml'
# and 'values.yaml', and maintainer validation
- name: Run chart-testing (lint)
run: ct lint --debug --target-branch ${{ env.DEFAULT_BRANCH }} --check-version-increment false
run: ct lint --debug --target-branch=${{ env.DEFAULT_BRANCH }} --check-version-increment=false

# https://github.com/helm/kind-action
- name: Create Kind cluster
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.0
v0.0.1
4 changes: 2 additions & 2 deletions charts/spiderpool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ home: "https://spidernet-io.github.io/spiderpool"
# application or library
type: application
# no need to modify this version , CI will auto update it with /VERSION
version: v0.0.5
version: v0.0.1
# This field is informational, and has no impact on chart version calculations .
# Leaving it unquoted can lead to parsing issues in some cases
# no need to modify this version , CI will auto update it with /VERSION
appVersion: "v0.0.5"
appVersion: "v0.0.1"
kubeVersion: ">= 1.16.0-0"
description: ipam for kubernetes cni
sources:
Expand Down

0 comments on commit 7a4d3fa

Please sign in to comment.