Skip to content

Commit

Permalink
ci: fix path to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-linch committed Nov 24, 2022
1 parent 1adac97 commit f0738d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
uses: docker/[email protected]
with:
context: .
file: ./.docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
17 changes: 7 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ RUN go mod download
COPY . .

# git tag
ARG BUILD_VERSION
ARG VERSION

# git commit sha
ARG BUILD_REF
ARG COMMIT

# build time
ARG BUILD_TIME
ARG DATE

# compile
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-ldflags="-w -s -extldflags \"-static\" -X \"main.buildVersion=${BUILD_VERSION}\" -X \"main.buildRef=${BUILD_REF}\" -X \"main.buildTime=${BUILD_TIME}\"" \
-a \
-tags timetzdata \
-o /bin/telegram-webhook-exporter .
-ldflags="-w -s -extldflags \"-static\" -X \"main.buildVersion=${VERSION}\" -X \"main.buildRef=${COMMIT}\" -X \"main.buildTime=${DATE}\"" \
-a \
-tags timetzdata \
-o /bin/telegram-webhook-exporter .


# run
Expand All @@ -40,7 +40,4 @@ COPY --from=builder /bin/telegram-webhook-exporter /bin/telegram-webhook-exporte

EXPOSE 8000

# Reference: https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.source="https://github.com/bots-house/telegram-webhook-exporter"

ENTRYPOINT [ "telegram-webhook-exporter" ]

0 comments on commit f0738d4

Please sign in to comment.