Skip to content

Commit

Permalink
opt(packages): simple package configurations (#163)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Dec 15, 2023
1 parent f4a8245 commit 6fdf927
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 156 deletions.
10 changes: 3 additions & 7 deletions packages/offline-packages.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ artifacts:
- "{{ .Release.version }}"
routers: # match once.
- description: "Started from v7.5.0 to latest"
semver:
constraint: ">=7.5.0-0"
# ref: https://github.com/Masterminds/semver#checking-version-constraints
if: {{ semver.CheckConstraint ">=7.5.0-0" .Release.version }}
# ref: https://github.com/Masterminds/semver#checking-version-constraints
if: {{ semver.CheckConstraint ">=7.5.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
artifacts:
Expand Down Expand Up @@ -109,10 +107,8 @@ artifacts:
extract: true
extract_inner_path: "etcd-v3.4.21-linux-{{ .Release.arch }}/etcdctl"
- description: "Started from v7.1.0 until v7.5"
semver:
constraint: ">=7.1.0-0 <7.5.0-0"
# ref: https://github.com/Masterminds/semver#checking-version-constraints
if: {{ semver.CheckConstraint ">=7.1.0-0 <7.5.0-0" .Release.version }}
if: {{ semver.CheckConstraint ">=7.1.0-0, <7.5.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
artifacts:
Expand Down
Loading

0 comments on commit 6fdf927

Please sign in to comment.