File tree 3 files changed +15
-27
lines changed
3 files changed +15
-27
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,16 @@ jobs:
17
17
go-version : ' 1.23'
18
18
cache : false
19
19
20
- - name : Config env
21
- run : |
22
- echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_AK }}" >> $GITHUB_ENV
23
- echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SK }}" >> $GITHUB_ENV
24
- echo "AWS_DEFAULT_REGION=us-east-2" >> $GITHUB_ENV
25
-
26
- - name : AWS CLI Init
27
- uses : unfor19/install-aws-cli-action@v1
28
-
29
- - name : Config ECR
30
- run : |
31
- aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/cloudpilotai
20
+ - name : Config ACR
21
+ uses : docker/login-action@v3
22
+ with :
23
+ registry : cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com
24
+ username : ${{ secrets.ALIBABACLOUD_USERNAME }}
25
+ password : ${{ secrets.ALIBABACLOUD_PASSWORD }}
32
26
33
27
-
uses :
ko-build/[email protected]
34
28
35
29
- name : build and publish image
36
30
run : |
37
- export KO_DOCKER_REPO=public.ecr.aws /cloudpilotai/alibabacloud/ karpenter
31
+ export KO_DOCKER_REPO=cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com /cloudpilotai/karpenter-provider-alibabacloud
38
32
ko build --bare github.com/cloudpilot-ai/karpenter-provider-alibabacloud/cmd/controller
Original file line number Diff line number Diff line change @@ -38,23 +38,17 @@ jobs:
38
38
go-version : ' 1.23'
39
39
cache : false
40
40
41
- - name : Config env
42
- run : |
43
- echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_AK }}" >> $GITHUB_ENV
44
- echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SK }}" >> $GITHUB_ENV
45
- echo "AWS_DEFAULT_REGION=us-east-2" >> $GITHUB_ENV
46
-
47
- - name : AWS CLI Init
48
- uses : unfor19/install-aws-cli-action@v1
49
-
50
- - name : Config ECR
51
- run : |
52
- aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/cloudpilotai
41
+ - name : Config ACR
42
+ uses : docker/login-action@v3
43
+ with :
44
+ registry : cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com
45
+ username : ${{ secrets.ALIBABACLOUD_USERNAME }}
46
+ password : ${{ secrets.ALIBABACLOUD_PASSWORD }}
53
47
54
48
-
uses :
ko-build/[email protected]
55
49
56
50
- name : Build and publish image
57
51
run : |
58
- export KO_DOCKER_REPO=public.ecr.aws /cloudpilotai/alibabacloud/ karpenter
52
+ export KO_DOCKER_REPO=cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com /cloudpilotai/karpenter-provider-alibabacloud
59
53
export IMAGE_TAG=${{ env.tag }}
60
54
ko build --bare github.com/cloudpilot-ai/karpenter-provider-alibabacloud/cmd/controller -t $IMAGE_TAG
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ controller:
43
43
rollingUpdate :
44
44
maxUnavailable : 1
45
45
image :
46
- repository : " public.ecr.aws /cloudpilotai/alibabacloud/ karpenter"
46
+ repository : " cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com /cloudpilotai/karpenter-provider-alibabacloud "
47
47
tag : " latest"
48
48
pullPolicy : IfNotPresent
49
49
priorityClassName : system-cluster-critical
You can’t perform that action at this time.
0 commit comments