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
5d4ff077
Verified
Commit
5d4ff077
authored
4 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Automate container builds
parent
d6c58df4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#620
passed
4 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+9
-0
9 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+2
-2
2 additions, 2 deletions
Dockerfile
Makefile
+0
-18
0 additions, 18 deletions
Makefile
with
11 additions
and
20 deletions
.gitlab-ci.yml
0 → 100644
+
9
−
0
View file @
5d4ff077
build
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
2
View file @
5d4ff077
FROM
openjdk:8-jdk
as
builder
# define arguments for versions to be used for platform and build tools
ARG
PLATFORM
ARG
BUILD_TOOLS
ARG
PLATFORM
=30
ARG
BUILD_TOOLS
=30.0.3
RUN
apt-get
--quiet
update
--yes
&&
\
apt-get
--quiet
install
--yes
wget
tar
unzip lib32stdc++6 lib32z1
...
...
This diff is collapsed.
Click to expand it.
Makefile
deleted
100644 → 0
+
0
−
18
View file @
d6c58df4
IMAGE
:=
k8r.eu/justjanne/
$(
shell
basename
$(
shell git remote get-url origin
)
.git
)
PLATFORM
:=
30
BUILD_TOOLS
:=
30.0.3
TAGS
:=
$(
PLATFORM
)
-
$(
BUILD_TOOLS
)
.PHONY
:
build
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
$(
IMAGE
)
:
$(
TAGS
)
docker push
$(
IMAGE
)
: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