Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
landing-page
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
landing-page
Commits
d4ca52af
Verified
Commit
d4ca52af
authored
5 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Updated build scripts
parent
1b26f430
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+14
-0
14 additions, 0 deletions
Makefile
build.sh
+0
-9
0 additions, 9 deletions
build.sh
deploy.sh
+0
-8
0 additions, 8 deletions
deploy.sh
with
14 additions
and
17 deletions
Makefile
0 → 100644
+
14
−
0
View file @
d4ca52af
IMAGE
:=
k8r.eu/justjanne/
$(
shell
basename
$(
shell git remote get-url origin
)
.git
)
TAGS
:=
$(
shell git describe
--always
--tags
HEAD
)
.PHONY
:
build
build
:
docker build
--pull
-t
$(
IMAGE
)
:
$(
TAGS
)
.
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.
build.sh
deleted
100755 → 0
+
0
−
9
View file @
1b26f430
#!/bin/sh
IMAGE
=
k8r.eu/justjanne/landing-page
TAGS
=
$(
git describe
--always
--tags
HEAD
)
docker build
-t
$IMAGE
:
$TAGS
.
docker tag
$IMAGE
:
$TAGS
$IMAGE
:latest
echo
Successfully tagged
$IMAGE
:latest
docker push
$IMAGE
:
$TAGS
docker push
$IMAGE
:latest
This diff is collapsed.
Click to expand it.
deploy.sh
deleted
100755 → 0
+
0
−
8
View file @
1b26f430
#!/bin/sh
IMAGE
=
k8r.eu/justjanne/landing-page
TAGS
=
$(
git describe
--always
--tags
HEAD
)
NAMESPACE
=
default
DEPLOYMENT
=
landing-page
CONTAINER
=
landing-page
kubectl
-n
$NAMESPACE
set
image deployment/
$DEPLOYMENT
$CONTAINER
=
$IMAGE
:
$TAGS
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