Skip to content

Conversation

@drewwells
Copy link
Contributor

No description provided.

else
@docker push $(SERVER_IMAGE):$(IMAGE_VERSION)
# Verify no changes locally prior to pushing image
git diff --exit-code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not work as expected, because the flag file could be stale. The way this makefile was implemented doesn't check for a stale docker build context like basic docker build does.

If this section is removed, docker will ensure the image is based on the current context, which in turn will make the output of git diff --exit-code useful for matching the image to the commit.

.docker-$(IMAGE_NAME)-$(IMAGE_VERSION):
$(MAKE) docker-atlas
touch $@
.PHONY: docker
docker: .docker-$(IMAGE_NAME)-$(IMAGE_VERSION)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants