Skip to content

Commit 69e4908

Browse files
committed
fix the issue of building docker image (projecteru2#535)
1 parent d145b4c commit 69e4908

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/dockerimage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: docker-image
22

33
on:
44
push:
5-
branches:
6-
- master
75
tags:
86
- v*
97

@@ -13,6 +11,8 @@ jobs:
1311
steps:
1412
- name: checkout
1513
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
1616

1717
- name: build and push to github packages
1818
uses: docker/build-push-action@v1

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM golang:alpine AS BUILD
22

33
# make binary
44
RUN apk add --no-cache build-base musl-dev git curl make cmake
5-
RUN git clone https://github.com/projecteru2/core.git /go/src/github.com/projecteru2/core
5+
COPY . /go/src/github.com/projecteru2/core
66
WORKDIR /go/src/github.com/projecteru2/core
77
ARG KEEP_SYMBOL
88
RUN make build && ./eru-core --version

0 commit comments

Comments
 (0)