remove arch for dockerhub image ci
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
This commit is contained in:
parent
f411443e0b
commit
461a36ab41
|
@ -12,9 +12,6 @@ jobs:
|
||||||
if: ${{ github.repository == 'karmada-io/karmada' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.repository == 'karmada-io/karmada' && github.ref == 'refs/heads/master' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
target:
|
target:
|
||||||
- karmada-controller-manager
|
- karmada-controller-manager
|
||||||
- karmada-scheduler
|
- karmada-scheduler
|
||||||
|
@ -33,10 +30,6 @@ jobs:
|
||||||
# 0 indicates all history for all branches and tags.
|
# 0 indicates all history for all branches and tags.
|
||||||
# for `git describe --tags` in Makefile.
|
# for `git describe --tags` in Makefile.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: install Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: 1.17.x
|
|
||||||
- name: install QEMU
|
- name: install QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: install Buildx
|
- name: install Buildx
|
||||||
|
@ -49,8 +42,4 @@ jobs:
|
||||||
- name: build and publish images
|
- name: build and publish images
|
||||||
env:
|
env:
|
||||||
VERSION: latest
|
VERSION: latest
|
||||||
GOARCH: ${{ matrix.arch }}
|
run: make mp-image-${{ matrix.target }}
|
||||||
# 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 }}
|
|
||||||
|
|
|
@ -8,9 +8,6 @@ jobs:
|
||||||
name: publish to DockerHub
|
name: publish to DockerHub
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
target:
|
target:
|
||||||
- karmada-controller-manager
|
- karmada-controller-manager
|
||||||
- karmada-scheduler
|
- karmada-scheduler
|
||||||
|
@ -29,10 +26,6 @@ jobs:
|
||||||
# 0 indicates all history for all branches and tags.
|
# 0 indicates all history for all branches and tags.
|
||||||
# for `git describe --tags` in Makefile.
|
# for `git describe --tags` in Makefile.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: install Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: 1.17.x
|
|
||||||
- name: install QEMU
|
- name: install QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: install Buildx
|
- name: install Buildx
|
||||||
|
@ -45,8 +38,4 @@ jobs:
|
||||||
- name: build and publish images
|
- name: build and publish images
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.ref_name }}
|
VERSION: ${{ github.ref_name }}
|
||||||
GOARCH: ${{ matrix.arch }}
|
run: make mp-image-${{ matrix.target }}
|
||||||
# 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 }}
|
|
||||||
|
|
Loading…
Reference in New Issue