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
41c7d3a3
Commit
41c7d3a3
authored
4 years ago
by
Will McCutchen
Browse files
Options
Downloads
Patches
Plain Diff
Build docker image in CI
parent
22de8317
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/continuous_delivery.yaml
+4
-1
4 additions, 1 deletion
.github/workflows/continuous_delivery.yaml
Dockerfile
+3
-1
3 additions, 1 deletion
Dockerfile
Makefile
+1
-1
1 addition, 1 deletion
Makefile
with
8 additions
and
3 deletions
.github/workflows/continuous_delivery.yaml
+
4
−
1
View file @
41c7d3a3
...
@@ -29,11 +29,14 @@ jobs:
...
@@ -29,11 +29,14 @@ jobs:
-
name
:
Build
-
name
:
Build
run
:
make build
run
:
make build
-
name
:
Build docker image
run
:
make image
-
name
:
Lint
-
name
:
Lint
run
:
make lint
run
:
make lint
-
name
:
Test
-
name
:
Test
run
:
git show && make testci
run
:
git show
--stat
&& make testci
-
name
:
Code coverage
-
name
:
Code coverage
uses
:
codecov/codecov-action@v1
uses
:
codecov/codecov-action@v1
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
3
−
1
View file @
41c7d3a3
# syntax = docker/dockerfile:1-experimental
FROM
golang:1.16
FROM
golang:1.16
WORKDIR
/go/src/github.com/mccutchen/go-httpbin
WORKDIR
/go/src/github.com/mccutchen/go-httpbin
...
@@ -6,7 +7,8 @@ WORKDIR /go/src/github.com/mccutchen/go-httpbin
...
@@ -6,7 +7,8 @@ WORKDIR /go/src/github.com/mccutchen/go-httpbin
RUN
cd
/tmp
&&
go get
-u
github.com/kevinburke/go-bindata/...
RUN
cd
/tmp
&&
go get
-u
github.com/kevinburke/go-bindata/...
COPY
. .
COPY
. .
RUN
make build buildtests
RUN
--mount
=
type
=
cache,id
=
gobuild,target
=
/root/.cache/go-build
\
make build buildtests
FROM
gcr.io/distroless/base
FROM
gcr.io/distroless/base
COPY
--from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/
COPY
--from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
41c7d3a3
...
@@ -142,7 +142,7 @@ gcloud-auth:
...
@@ -142,7 +142,7 @@ gcloud-auth:
# docker images
# docker images
# =============================================================================
# =============================================================================
image
:
image
:
docker build
-t
$(
DOCKER_TAG_DOCKERHUB
)
.
DOCKER_BUILDKIT
=
1
docker build
-t
$(
DOCKER_TAG_DOCKERHUB
)
.
imagepush
:
image
imagepush
:
image
docker push
$(
DOCKER_TAG_DOCKERHUB
)
docker push
$(
DOCKER_TAG_DOCKERHUB
)
...
...
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