Skip to content

Commit

Permalink
ci: update measure-go workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
detj committed Jul 22, 2024
1 parent 337d236 commit f91f0ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/measure-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
id: push
uses: docker/build-push-action@v6
with:
context: measure-backend/measure-go
file: measure-backend/measure-go/dockerfile
push: true
tags: meausre-sh/measure-go:${{ github.ref_name }}
Expand Down
4 changes: 2 additions & 2 deletions measure-backend/measure-go/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM public.ecr.aws/docker/library/golang:alpine AS builder
RUN apk add --no-cache git
WORKDIR /go/src/app
COPY go.mod go.sum ./
COPY ["go.mod", "go.sum", "./"]
RUN go get -d -v ./...
COPY . .
# RUN go build -o /go/bin/app -v ./...
Expand All @@ -18,5 +18,5 @@ FROM public.ecr.aws/docker/library/alpine:latest
# LABEL org.opencontainers.image.licenses="Apache-2.0"
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/bin/app /app
ENTRYPOINT /app
ENTRYPOINT ["/app"]
EXPOSE 8080

0 comments on commit f91f0ad

Please sign in to comment.