-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#742] Add status service docker image utilization to the deploy stack
The user story highlighted the issue of a failed deployment to the dev environment due to a missing context for the status-service. The expected behavior was for the deploy to succeed. To address this, changes were made to incorporate the status-service docker image utilization into the deploy stack. The addition of the status-service AWS registry now ensures that the necessary context is available for the deployment process, moving the build process to the machine where the deploy is performed, allowing for a successful deployment to the dev environment.
- Loading branch information
Showing
5 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
common_mk := ../../scripts/govtool/common.mk | ||
ifeq ($(origin $(common_mk)), undefined) | ||
$(eval $(common_mk) := included) | ||
include $(common_mk) | ||
endif | ||
|
||
.DEFAULT_GOAL := push-status-service | ||
|
||
# image tags | ||
status_service_image_tag := $(shell git log -n 1 --format="%H" -- $(root_dir)/govtool/status-service) | ||
|
||
.PHONY: build-status-service | ||
build-status-service: docker-login | ||
$(call check_image_on_ecr,status-service,$(status_service_image_tag)) || \ | ||
$(docker) build --tag "$(repo_url)/status-service:$(status_service_image_tag)" \ | ||
$(root_dir)/govtool/status-service | ||
|
||
.PHONY: push-status-service | ||
push-status-service: build-status-service | ||
$(call check_image_on_ecr,status-service,$(status_service_image_tag)) || \ | ||
$(docker) push $(repo_url)/status-service:$(status_service_image_tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters