diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 303b0d0..8a25a89 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 b785d32..dfb242c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:alpine AS BUILD # make binary RUN apk add --no-cache git ca-certificates curl make gcc libc-dev -RUN git clone https://github.com/projecteru2/cli.git /go/src/github.com/projecteru2/cli +COPY . /go/src/github.com/projecteru2/cli WORKDIR /go/src/github.com/projecteru2/cli RUN make build && ./eru-cli --version