Skip to content

Commit

Permalink
fix: dockerfile is incorret (#825)
Browse files Browse the repository at this point in the history
* fix: dockerfile is incorret

* fix the dockerfile

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Dec 25, 2024
1 parent 20d42d5 commit f34df86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

on:
pull_request:
branches:
- master
push:
tags:
- "*"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ FROM golang:1.23 AS builder

WORKDIR /work
COPY . .
RUN ls -hal && make linux
RUN CGO_ENABLED=0 go build -v -a -o jcli .

FROM alpine:3.10
COPY --from=builder /work/bin/linux/jcli /usr/bin/jcli
COPY --from=builder /work/jcli /usr/bin/jcli
RUN jcli config generate -i=false > ~/.jenkins-cli.yaml

ENTRYPOINT ["jcli"]

0 comments on commit f34df86

Please sign in to comment.