diff --git a/CHANGES.md b/CHANGES.md index 8135bde6..c563796f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,6 +19,7 @@ Release Notes. - fix: `multiple-linear` command's `labels` type can be string type (#122) - Add missing `dest-service-id` `dest-service-name` to `metrics linear` command (#121) - Fix the wrong name when getting `destInstance` flag (#118) +- Fix failed push docker image to ghcr.(#135) ### Chores diff --git a/Makefile b/Makefile index 83a14470..e806eb99 100644 --- a/Makefile +++ b/Makefile @@ -141,15 +141,15 @@ check-codegen: .PHONY: docker docker: PUSH_OR_LOAD = --load docker: PLATFORMS = -docker: - docker buildx create --use --driver docker-container --name skywalking_cli > /dev/null 2>&1 || true - docker buildx build $(PUSH_OR_LOAD) $(PLATFORMS) --build-arg VERSION=$(VERSION) . -t $(HUB)/$(APP_NAME):$(VERSION) -t $(HUB)/$(APP_NAME):latest - docker buildx rm skywalking_cli .PHONY: docker.push docker.push: PUSH_OR_LOAD = --push docker.push: PLATFORMS = --platform linux/386,linux/amd64,linux/arm64 -docker.push: docker + +docker docker.push: + docker buildx create --use --driver docker-container --name skywalking_cli > /dev/null 2>&1 || true + docker buildx build $(PUSH_OR_LOAD) $(PLATFORMS) --build-arg VERSION=$(VERSION) . -t $(HUB)/$(APP_NAME):$(VERSION) -t $(HUB)/$(APP_NAME):latest + docker buildx rm skywalking_cli .PHONY: install install: clean