Skip to content

Commit

Permalink
apk add "git" in the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoh86 committed Nov 14, 2020
1 parent a6a2278 commit e69f8de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/git-vertag:latest
ghcr.io/${{ github.repository_owner }}/git-vertag:${{ steps.get_tag.outputs.TAG }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.get_tag.outputs.TAG }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
context: .
push: false
tags: |
ghcr.io/${{ github.repository_owner }}/git-vertag:${{ github.sha }}
ghcr.io/${{ github.repository }}:draft
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Usage:
# docker run -it --rm gcr.io/kyoh86/git-vertag:latest -v ${PWD}:/work patch
FROM golang:alpine AS build-stage
ADD . /work
WORKDIR /work
RUN go build -o git-vertag .

FROM alpine:latest
RUN apk update && apk add git
WORKDIR /work
COPY --from=build-stage /work/git-vertag /usr/local/bin/git-vertag
ENTRYPOINT ["/usr/local/bin/git-vertag"]

0 comments on commit e69f8de

Please sign in to comment.