Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Go Httpbin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Nix
Go Httpbin
Commits
7c7422c1
Commit
7c7422c1
authored
7 years ago
by
Will McCutchen
Browse files
Options
Downloads
Patches
Plain Diff
Tag docker images with commit hash, for now
parent
6ec6c2fb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-2
4 additions, 2 deletions
Makefile
with
4 additions
and
2 deletions
Makefile
+
4
−
2
View file @
7c7422c1
commit
:=
$(
shell git rev-parse
--short
HEAD
)
build
:
dist/go-httpbin
dist/go-httpbin
:
assets cmd/go-httpbin/*.go httpbin/*.go
...
...
@@ -28,7 +30,7 @@ image: assets cmd/go-httpbin/*.go httpbin/*.go
mkdir
-p
/tmp/go-httpbin-docker
cp
Dockerfile /tmp/go-httpbin-docker
GOOS
=
linux
GOARCH
=
amd64 go build
-o
/tmp/go-httpbin-docker/go-httpbin ./cmd/go-httpbin
docker build
-t
mccutchen/go-httpbin /tmp/go-httpbin-docker
docker build
-t
mccutchen/go-httpbin
:
$(
commit
)
/tmp/go-httpbin-docker
imagepush
:
image
docker push mccutchen/go-httpbin
docker push mccutchen/go-httpbin
:
$(
commit
)
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