File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 11name : Publish Chart
22
33on :
4- push :
5- branches :
6- - main
7- - release-*
84 release :
95 types :
106 - published
Original file line number Diff line number Diff line change 11name : CI-Infra-Build
22
33on :
4- push :
5- branches :
6- - main
7- - release-*
8- workflow_dispatch : {}
9- pull_request :
10- branches :
11- - main
12- - release-*
4+ release :
5+ types :
6+ - published
7+ tags :
8+ - v*
139
1410permissions :
1511 contents : read
9389 uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
9490 with :
9591 submodules : true
92+
93+ - name : Get Version
94+ id : get_version
95+ run : |
96+ VERSION=${GITHUB_REF#refs/tags/}
97+ echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
98+
9699 - name : Setup Go
97100 uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
98101 with :
@@ -118,8 +121,9 @@ jobs:
118121
119122 - name : Run Build Images
120123 run : |
121- make multi-arch-builder IMG_REGISTRY=${{ secrets.CONTAINER_REGISTRY }}
122- make publish IMG_REGISTRY=${{ secrets.CONTAINER_REGISTRY }}
124+ version=${{ steps.get_version.outputs.VERSION }}
125+ make multi-arch-builder IMG_REGISTRY=${{ secrets.CONTAINER_REGISTRY }} VERSION=${version}
126+ make publish IMG_REGISTRY=${{ secrets.CONTAINER_REGISTRY }} VERSION=${version}
123127
124128 - name : Cleanup binary
125129 run : make kdp-cli-clean
Original file line number Diff line number Diff line change 11# #@ Docker image info
22IMG ?= linktimecloud/kubernetes-data-platform:$(VERSION )
3- KDP_IMG ?= linktimecloud/kdp-infra :$(VERSION )
3+ KDP_IMG ?= linktimecloud/kdp:$(VERSION )
44IMG_REGISTRY ?= ""
55OUTPUT_TYPE := registry
66TARGETARCHS := amd64 arm64
You can’t perform that action at this time.
0 commit comments