Merge pull request #212 from Vacant2333/userdata #97
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Latest image build | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
latest-image-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
cache: false | |
- 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 }} | |
- uses: ko-build/[email protected] | |
- name: build and publish image | |
run: | | |
export KO_DOCKER_REPO=cloudpilotai-registry.cn-hangzhou.cr.aliyuncs.com/cloudpilotai/karpenter-provider-alibabacloud | |
ko build --bare github.com/cloudpilot-ai/karpenter-provider-alibabacloud/cmd/controller |