diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml index 7cce78aa0..aa49d602e 100644 --- a/.github/workflows/registry.yml +++ b/.github/workflows/registry.yml @@ -15,7 +15,7 @@ env: ARTIFACT_HUB_REPOSITORY_ID: ${{ secrets.ARTIFACT_HUB_REPOSITORY_ID }} jobs: - publish-images: + publish-core-images: runs-on: ubuntu-latest steps: - uses: actions/checkout@master @@ -74,25 +74,6 @@ jobs: ghcr.io/${{ github.repository_owner }}/oamdev/vela-core:${{ steps.get_version.outputs.VERSION }} kubevela-registry.cn-hangzhou.cr.aliyuncs.com/oamdev/vela-core:${{ steps.get_version.outputs.VERSION }} - - uses: docker/build-push-action@v2 - name: Build & Pushing vela-apiserver for Dockerhub, GHCR and ACR - with: - context: . - file: Dockerfile.apiserver - labels: |- - org.opencontainers.image.source=https://github.com/${{ github.repository }} - org.opencontainers.image.revision=${{ github.sha }} - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - build-args: | - GITVERSION=git-${{ steps.vars.outputs.git_revision }} - VERSION=${{ steps.get_version.outputs.VERSION }} - GOPROXY=https://proxy.golang.org - tags: |- - docker.io/oamdev/vela-apiserver:${{ steps.get_version.outputs.VERSION }} - ghcr.io/${{ github.repository_owner }}/oamdev/vela-apiserver:${{ steps.get_version.outputs.VERSION }} - kubevela-registry.cn-hangzhou.cr.aliyuncs.com/oamdev/vela-apiserver:${{ steps.get_version.outputs.VERSION }} - - uses: docker/build-push-action@v2 name: Build & Pushing CLI for Dockerhub, GHCR and ACR with: @@ -112,6 +93,65 @@ jobs: ghcr.io/${{ github.repository_owner }}/oamdev/vela-cli:${{ steps.get_version.outputs.VERSION }} kubevela-registry.cn-hangzhou.cr.aliyuncs.com/oamdev/vela-cli:${{ steps.get_version.outputs.VERSION }} + publish-addon-images: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Get the version + id: get_version + run: | + VERSION=${GITHUB_REF#refs/tags/} + if [[ ${GITHUB_REF} == "refs/heads/master" ]]; then + VERSION=latest + fi + echo ::set-output name=VERSION::${VERSION} + - name: Get git revision + id: vars + shell: bash + run: | + echo "::set-output name=git_revision::$(git rev-parse --short HEAD)" + - name: Login ghcr.io + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Login docker.io + uses: docker/login-action@v1 + with: + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Login Alibaba Cloud ACR + uses: docker/login-action@v1 + with: + registry: kubevela-registry.cn-hangzhou.cr.aliyuncs.com + username: ${{ secrets.ACR_USERNAME }}@aliyun-inner.com + password: ${{ secrets.ACR_PASSWORD }} + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + with: + driver-opts: image=moby/buildkit:master + + - uses: docker/build-push-action@v2 + name: Build & Pushing vela-apiserver for Dockerhub, GHCR and ACR + with: + context: . + file: Dockerfile.apiserver + labels: |- + org.opencontainers.image.source=https://github.com/${{ github.repository }} + org.opencontainers.image.revision=${{ github.sha }} + platforms: linux/amd64,linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + build-args: | + GITVERSION=git-${{ steps.vars.outputs.git_revision }} + VERSION=${{ steps.get_version.outputs.VERSION }} + GOPROXY=https://proxy.golang.org + tags: |- + docker.io/oamdev/vela-apiserver:${{ steps.get_version.outputs.VERSION }} + ghcr.io/${{ github.repository_owner }}/oamdev/vela-apiserver:${{ steps.get_version.outputs.VERSION }} + kubevela-registry.cn-hangzhou.cr.aliyuncs.com/oamdev/vela-apiserver:${{ steps.get_version.outputs.VERSION }} + - uses: docker/build-push-action@v2 name: Build & Pushing runtime rollout Dockerhub, GHCR and ACR with: diff --git a/charts/vela-core/values.yaml b/charts/vela-core/values.yaml index 7b99cd49f..18c971969 100644 --- a/charts/vela-core/values.yaml +++ b/charts/vela-core/values.yaml @@ -226,7 +226,7 @@ admissionWebhooks: enabled: true image: repository: oamdev/kube-webhook-certgen - tag: v2.4.0 + tag: v2.4.1 pullPolicy: IfNotPresent nodeSelector: {} affinity: {} diff --git a/charts/vela-minimal/values.yaml b/charts/vela-minimal/values.yaml index 448bf49a3..2b4b3393d 100644 --- a/charts/vela-minimal/values.yaml +++ b/charts/vela-minimal/values.yaml @@ -203,7 +203,7 @@ admissionWebhooks: enabled: true image: repository: oamdev/kube-webhook-certgen - tag: v2.4.0 + tag: v2.4.1 pullPolicy: IfNotPresent nodeSelector: {} affinity: {}