diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index b21bffa2c..46dc28302 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -2,8 +2,6 @@ name: docker-image on: push: - branches: - - master tags: - v* @@ -13,6 +11,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: build and push to github packages uses: docker/build-push-action@v1 diff --git a/Dockerfile b/Dockerfile index 6e881f0f5..390c8b3df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:alpine AS BUILD # make binary RUN apk add --no-cache build-base musl-dev git curl make cmake -RUN git clone https://github.com/projecteru2/core.git /go/src/github.com/projecteru2/core +COPY . /go/src/github.com/projecteru2/core WORKDIR /go/src/github.com/projecteru2/core ARG KEEP_SYMBOL RUN make build && ./eru-core --version