remove arch for dockerhub image ci

Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
This commit is contained in:
yingjinhui 2022-04-28 10:48:02 +08:00
parent f411443e0b
commit 461a36ab41
2 changed files with 2 additions and 24 deletions

View File

@ -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 }}

View File

@ -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 }}