Skip to content

Commit

Permalink
#162 Delete System Unit Test (sut) image
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Sep 9, 2024
1 parent 3f7f7aa commit b603fe1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ BUILD_VERSION := $(shell git describe --always --tags --abbrev=0 --dirty | sed
DOCKER_CONTAINER_NAME := $(PROGRAM_NAME)
DOCKER_IMAGE_NAME := senzing/$(PROGRAM_NAME)
DOCKER_BUILD_IMAGE_NAME := $(DOCKER_IMAGE_NAME)-build
DOCKER_SUT_IMAGE_NAME := $(PROGRAM_NAME)_sut
GIT_REMOTE_URL := $(shell git config --get remote.origin.url)
GIT_REPOSITORY_NAME := $(shell basename `git rev-parse --show-toplevel`)
GIT_VERSION := $(shell git describe --always --tags --long --dirty | sed -e 's/\-0//' -e 's/\-g.......//')
Expand Down
2 changes: 1 addition & 1 deletion makefiles/darwin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build-osarch-specific: darwin/amd64
.PHONY: clean-osarch-specific
clean-osarch-specific:
@docker rm --force $(DOCKER_CONTAINER_NAME) 2> /dev/null || true
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) 2> /dev/null || true
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) $(DOCKER_SUT_IMAGE_NAME) 2> /dev/null || true
@rm -f $(GOPATH)/bin/$(PROGRAM_NAME) || true
@rm -f $(MAKEFILE_DIRECTORY)/.coverage || true
@rm -f $(MAKEFILE_DIRECTORY)/coverage.html || true
Expand Down
2 changes: 1 addition & 1 deletion makefiles/darwin_arm64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-osarch-specific: darwin/arm64
.PHONY: docker-build-osarch-specific
docker-build-osarch-specific:
@docker build \
--platform linux/amd64 \
--platform linux/arm64 \
--tag $(DOCKER_IMAGE_NAME) \
--tag $(DOCKER_IMAGE_NAME):$(BUILD_VERSION) \
.
Expand Down
2 changes: 1 addition & 1 deletion makefiles/linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build-osarch-specific: linux/amd64
.PHONY: clean-osarch-specific
clean-osarch-specific:
@docker rm --force $(DOCKER_CONTAINER_NAME) 2> /dev/null || true
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) 2> /dev/null || true
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) $(DOCKER_SUT_IMAGE_NAME) 2> /dev/null || true
@rm -f $(GOPATH)/bin/$(PROGRAM_NAME) || true
@rm -f $(MAKEFILE_DIRECTORY)/.coverage || true
@rm -f $(MAKEFILE_DIRECTORY)/coverage.html || true
Expand Down
2 changes: 1 addition & 1 deletion makefiles/linux_arm64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build-osarch-specific: linux/arm64
.PHONY: docker-build-osarch-specific
docker-build-osarch-specific:
@docker build \
--platform linux/amd64 \
--platform linux/arm64 \
--tag $(DOCKER_IMAGE_NAME) \
--tag $(DOCKER_IMAGE_NAME):$(BUILD_VERSION) \
.
Expand Down

0 comments on commit b603fe1

Please sign in to comment.