-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vulcanize/cicd
fix CI/CD. rename master to main branch
- Loading branch information
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Docker Compose Build | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM golang:1.13-alpine as builder | ||
|
||
RUN apk --update --no-cache add make git g++ linux-headers | ||
# DEBUG | ||
RUN apk add busybox-extras | ||
|
||
# Get and build gap-filler | ||
ADD . /go/src/github.com/vulcanize/gap-filler | ||
WORKDIR /go/src/github.com/vulcanize/gap-filler | ||
RUN make linux | ||
|
||
# app container | ||
FROM alpine | ||
|
||
# keep binaries immutable | ||
COPY --from=builder /go/src/github.com/vulcanize/gap-filler/build/gap-filler-linux gap-filler | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["/app/gap-filler"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters