From 461a36ab414e3aeb162ebb375d77ce3711f8ccdb Mon Sep 17 00:00:00 2001 From: yingjinhui Date: Thu, 28 Apr 2022 10:48:02 +0800 Subject: [PATCH] remove arch for dockerhub image ci Signed-off-by: yingjinhui --- .github/workflows/dockerhub-latest-image.yml | 13 +------------ .github/workflows/dockerhub-released-image.yml | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/dockerhub-latest-image.yml b/.github/workflows/dockerhub-latest-image.yml index 24bc2ff7e..24d2d572e 100644 --- a/.github/workflows/dockerhub-latest-image.yml +++ b/.github/workflows/dockerhub-latest-image.yml @@ -12,9 +12,6 @@ jobs: if: ${{ github.repository == 'karmada-io/karmada' && github.ref == 'refs/heads/master' }} strategy: matrix: - arch: - - amd64 - - arm64 target: - karmada-controller-manager - karmada-scheduler @@ -33,10 +30,6 @@ jobs: # 0 indicates all history for all branches and tags. # for `git describe --tags` in Makefile. fetch-depth: 0 - - name: install Go - uses: actions/setup-go@v2 - with: - go-version: 1.17.x - name: install QEMU uses: docker/setup-qemu-action@v1 - name: install Buildx @@ -49,8 +42,4 @@ jobs: - name: build and publish images env: VERSION: latest - GOARCH: ${{ matrix.arch }} - # When we build binary for multiple platform, `go build` may be skipped as `$(SOURCES)` unchanged. - # So we clean the binary at first, and force to run `go build`. - # See https://github.com/karmada-io/karmada/pull/1649#issuecomment-1107959879 for more info. - run: make clean mp-image-${{ matrix.target }} + run: make mp-image-${{ matrix.target }} diff --git a/.github/workflows/dockerhub-released-image.yml b/.github/workflows/dockerhub-released-image.yml index e0209ed90..fa87a1591 100644 --- a/.github/workflows/dockerhub-released-image.yml +++ b/.github/workflows/dockerhub-released-image.yml @@ -8,9 +8,6 @@ jobs: name: publish to DockerHub strategy: matrix: - arch: - - amd64 - - arm64 target: - karmada-controller-manager - karmada-scheduler @@ -29,10 +26,6 @@ jobs: # 0 indicates all history for all branches and tags. # for `git describe --tags` in Makefile. fetch-depth: 0 - - name: install Go - uses: actions/setup-go@v2 - with: - go-version: 1.17.x - name: install QEMU uses: docker/setup-qemu-action@v1 - name: install Buildx @@ -45,8 +38,4 @@ jobs: - name: build and publish images env: VERSION: ${{ github.ref_name }} - GOARCH: ${{ matrix.arch }} - # When we build binary for multiple platform, `go build` may be skipped as `$(SOURCES)` unchanged. - # So we clean the binary at first, and force to run `go build`. - # See https://github.com/karmada-io/karmada/pull/1649#issuecomment-1107959879 for more info. - run: make clean mp-image-${{ matrix.target }} + run: make mp-image-${{ matrix.target }}