Skip to content
Snippets Groups Projects
Verified Commit 3ec239e5 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Updated build scripts

parent e74b120b
No related branches found
No related tags found
No related merge requests found
NAME=k8r.eu/justjanne/android-sdk
PLATFORM=28
BUILD_TOOLS=28.0.3
.PHONY: all
all: push
IMAGE := k8r.eu/justjanne/$(shell basename $(shell git remote get-url origin) .git)
PLATFORM := 28
BUILD_TOOLS := 28.0.3
TAGS := $(PLATFORM)-$(BUILD_TOOLS)
.PHONY: build
build: Dockerfile
docker build -t $(NAME):$(PLATFORM)-$(BUILD_TOOLS) --build-arg PLATFORM=$(PLATFORM) --build-arg BUILD_TOOLS=$(BUILD_TOOLS) .
docker tag $(NAME):$(PLATFORM)-$(BUILD_TOOLS) $(NAME):latest
build:
docker build --pull -t $(IMAGE):$(TAGS) . \
--build-arg PLATFORM=$(PLATFORM) \
--build-arg BUILD_TOOLS=$(BUILD_TOOLS)
docker tag $(IMAGE):$(TAGS) $(IMAGE):latest
@echo Successfully tagged $(IMAGE):$(TAGS) as latest
.PHONY: push
push: build
docker push $(NAME):$(PLATFORM)-$(BUILD_TOOLS)
docker push $(NAME):latest
docker push $(IMAGE):$(TAGS)
docker push $(IMAGE):latest
@echo Successfully pushed $(IMAGE):$(TAGS) as latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment