Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
android-sdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
android-sdk
Commits
3ec239e5
Verified
Commit
3ec239e5
authored
5 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Updated build scripts
parent
e74b120b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+13
-12
13 additions, 12 deletions
Makefile
with
13 additions
and
12 deletions
Makefile
+
13
−
12
View file @
3ec239e5
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
$(
NAM
E
)
:
$(
PLATFORM
)
-
$(
BUILD_TOOL
S
)
docker push
$(
NAM
E
)
:latest
docker push
$(
IMAG
E
)
:
$(
TAG
S
)
docker push
$(
IMAG
E
)
:latest
@
echo
Successfully pushed
$(
IMAGE
)
:
$(
TAGS
)
as latest
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment