Skip to content

Commit

Permalink
Merge pull request #443 from sophieliu15/v037_release_1
Browse files Browse the repository at this point in the history
Include build and test in Event Exporter image push pipeline
  • Loading branch information
sophieliu15 authored Oct 26, 2021
2 parents 9886b46 + a059261 commit 9df7733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions event-exporter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ifdef ARCH
BUILD_FLAGS=--platform=linux/$(ARCH)
endif

build:
build: test
${ENVVAR} go build -mod=vendor -a -o ${BINARY_NAME}

test:
Expand All @@ -45,15 +45,15 @@ container: .container

container-multiarch: $(addprefix .sub-container-,$(ALL_ARCH))

push: .push
push: build .push

.push: .container
docker push $(IMAGE):$(TAG)

.sub-push-%:
$(MAKE) --no-print-directory ARCH=$* .push

push-multiarch: $(addprefix .sub-push-,$(ALL_ARCH))
push-multiarch: build $(addprefix .sub-push-,$(ALL_ARCH))
docker manifest create --amend $(IMAGE):$(TAG) $(addsuffix :$(TAG),$(addprefix $(IMAGE)-,$(ALL_ARCH)))
for arch in $(ALL_ARCH); do \
docker manifest annotate --os=linux --arch=$$arch $(IMAGE):$(TAG) $(IMAGE)-$$arch:$(TAG); \
Expand Down

0 comments on commit 9df7733

Please sign in to comment.