Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/latest-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
- name: Config ACR
uses: docker/login-action@v3
with:
registry: cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com
username: ${{ secrets.ALIBABACLOUD_USERNAME }}
password: ${{ secrets.ALIBABACLOUD_PASSWORD }}
registry: docker.io
username: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_USERNAME }}

- uses: ko-build/setup-ko@v0.6

- name: build and publish image
run: |
export KO_DOCKER_REPO=cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com/cloudpilotai/karpenter-provider-alibabacloud
export KO_DOCKER_REPO=docker.io/cloudpilotai/karpenter-provider-alibabacloud
ko build --bare github.com/cloudpilot-ai/karpenter-provider-alibabacloud/cmd/controller
12 changes: 6 additions & 6 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ jobs:
go-version: '1.23'
cache: false

- name: Config ACR
- name: Config DockerHub
uses: docker/login-action@v3
with:
registry: cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com
username: ${{ secrets.ALIBABACLOUD_USERNAME }}
password: ${{ secrets.ALIBABACLOUD_PASSWORD }}
registry: docker.io
username: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_USERNAME }}

- uses: ko-build/setup-ko@v0.6

- name: Build and publish image
run: |
git fetch --tags
git checkout ${{ env.tag }}
export KO_DOCKER_REPO=cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com/cloudpilotai/karpenter-provider-alibabacloud

export KO_DOCKER_REPO=docker.io/cloudpilotai/karpenter-provider-alibabacloud
export IMAGE_TAG=${{ env.tag }}
ko build --bare github.com/cloudpilot-ai/karpenter-provider-alibabacloud/cmd/controller -t $IMAGE_TAG