Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
e77368c3
Commit
e77368c3
authored
6 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Patches
Plain Diff
Do not check gitlab token in makefile
parent
d3137044
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+2
-5
2 additions, 5 deletions
Makefile
with
2 additions
and
5 deletions
Makefile
+
2
−
5
View file @
e77368c3
...
...
@@ -3,8 +3,8 @@ ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION
=
$(
shell git rev-parse
--short
HEAD
)
TAG
=
arkindex-backend
build
:
require-gitlab
docker build
$(
ROOT_DIR
)
--build-arg
GITLAB_TOKEN
=
${
GITLAB_TOKEN
}
-t
$(
TAG
)
:
$(
VERSION
)
build
:
docker build
$(
ROOT_DIR
)
-t
$(
TAG
)
:
$(
VERSION
)
publish-version
:
require-docker-auth
$(
MAKE
)
build
TAG
=
registry.gitlab.com/arkindex/backend
...
...
@@ -20,9 +20,6 @@ release: require-version
require-docker-auth
:
@
grep
registry.gitlab.com ~/.docker/config.json
>
/dev/null
||
(
echo
"Docker Login on registry.gitlab.com"
;
docker login registry.gitlab.com
)
require-gitlab
:
@
if
[
!
"
${
GITLAB_TOKEN
}
"
]
;
then
echo
"Missing GITLAB_TOKEN environment variable"
;
exit
1
;
fi
require-version
:
@
if
[
!
"
$(
version
)
"
]
;
then
echo
"Missing version to publish"
;
exit
1
;
fi
@
git rev-parse
$(
version
)
>
/dev/null 2>&1
&&
(
echo
"Version
$(
version
)
already exists on local git repo !"
&&
exit
1
)
||
true
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