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 IMAGE := k8r.eu/justjanne/$(shell basename $(shell git remote get-url origin) .git)
PLATFORM=28 PLATFORM := 28
BUILD_TOOLS=28.0.3 BUILD_TOOLS := 28.0.3
TAGS := $(PLATFORM)-$(BUILD_TOOLS)
.PHONY: all
all: push
.PHONY: build .PHONY: build
build: Dockerfile build:
docker build -t $(NAME):$(PLATFORM)-$(BUILD_TOOLS) --build-arg PLATFORM=$(PLATFORM) --build-arg BUILD_TOOLS=$(BUILD_TOOLS) . docker build --pull -t $(IMAGE):$(TAGS) . \
docker tag $(NAME):$(PLATFORM)-$(BUILD_TOOLS) $(NAME):latest --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 .PHONY: push
push: build push: build
docker push $(NAME):$(PLATFORM)-$(BUILD_TOOLS) docker push $(IMAGE):$(TAGS)
docker push $(NAME):latest 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