Skip to content

Commit c0f518c

Browse files
committed
test skopeo
1 parent 0322d3b commit c0f518c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
- name: 'versions'
3636
id: kubectl_versions
3737
run: |
38-
VERSION=$(skopeo list-tags docker://registry.k8s.io/kubectl | jq -r '.Tags | .[]| select(. | match("v[0-9].[0-9]{2}.[0-9]$"))' | \
39-
| sort | awk -F"." '$2>31{split($0,a,"."); ret[a[2]] = $0" " }END{for (i=0 ; i<length(ret); i++sd ) { printf ret[i] }}' )
38+
skopeo list-tags docker://registry.k8s.io/kubectl | jq -r '.Tags | .[]| select(. | match("v[0-9].[0-9]{2}.[0-9]$"))'
4039
echo "kubectl_versions=${VERSIONS} >> $GITHUB_OUTPUT
4140
python --version
4241

0 commit comments

Comments
 (0)