Skip to content

Commit

Permalink
Dockerfile && action
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbeatty committed Dec 2, 2020
1 parent d0b1523 commit 005f39d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Go
on:
push:
branches:
- master
tags:
- 'v*.*.*'

jobs:
build:
Expand Down Expand Up @@ -36,8 +36,7 @@ jobs:
- name: Draft release
uses: softprops/action-gh-release@v1
with:
body: Test for action
tag_name: v0.1.3
body: Release for new version
files: |
./oms.exe
./oms
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang AS mybuildstage
COPY ./ /workdir
WORKDIR /workdir
RUN go env -w GOPROXY=https://goproxy.cn && go env -w GO111MODULE=on
RUN go get -u github.com/gobuffalo/packr/packr
RUN packr build -o oms -mod=mod
FROM ubuntu:16.04
COPY ./conf/config.yaml.example ./config.yaml
COPY --from=mybuildstage /workdir/oms .
CMD ["./oms"]

0 comments on commit 005f39d

Please sign in to comment.