Verified Commit 3ec239e5 authored by Janne Koschinski's avatar Janne Koschinski
Browse files

Updated build scripts

parent e74b120b
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment