Last active
October 29, 2019 12:06
-
-
Save voledemar/57ea65fcace984352ccf5359380f38f4 to your computer and use it in GitHub Desktop.
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
IMAGE_REPO = registry.gitlab.com | |
GROUP_NAME = | |
PROJECT_NAME = | |
DOCKERFILE = Dockerfile | |
CONTEXT = .. | |
# tag = $(shell cat $(CONTEXT)/version.txt) | |
IMAGE = $(IMAGE_REPO)/$(GROUP_NAME)/$(PROJECT_NAME):$(tag) | |
all: build | |
build: | |
@docker build -f $(DOCKERFILE) -t $(IMAGE) $(CONTEXT) | |
rebuild: | |
@docker build --no-cache -f $(DOCKERFILE) -t $(IMAGE) $(CONTEXT) | |
pull: | |
@docker pull $(IMAGE) | |
push: | |
@docker push $(IMAGE) | |
login: | |
@docker login $(IMAGE_REPO) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment