Skip to content

Commit

Permalink
chore: properly set the version and fix Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Oct 19, 2022
1 parent 604d5c9 commit d1b2dbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test_and_publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# The build job will use the .git directory to
# infer the current version to embed in the binary
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.18'
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ RUN go build -ldflags "-s -w -X 'github.com/italia/publiccode-crawler/v3/interna

FROM alpine:3

RUN apk add --no-cache gcompat

COPY --from=build /src/publiccode-crawler /usr/local/bin/publiccode-crawler
CMD ["publiccode-crawler", "crawl"]

0 comments on commit d1b2dbe

Please sign in to comment.