Skip to content

Commit

Permalink
fix: use correct go build invocation in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Nov 20, 2024
1 parent 5174bc7 commit 3cc1cb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ADD . .

WORKDIR cmd/app

RUN sh -c 'go build -ldflags "-X main.SHA=$(git rev-parse HEAD)" -o /bin/app ./cmd/app/...'
RUN sh -c 'go build -ldflags "-X main.SHA=$(git rev-parse HEAD)" -o /bin/app ./cmd/app/.'

CMD "/bin/app"
2 changes: 1 addition & 1 deletion cmd/pipeline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ADD . .

WORKDIR cmd/app

RUN sh -c 'go build -o /bin/pipeline ./cmd/pipeline/...'
RUN sh -c 'go build -o /bin/pipeline ./cmd/pipeline/.'

CMD "/bin/pipeline"
7 changes: 7 additions & 0 deletions glu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ sources:
remote:
name: origin
url: "https://github.com/get-glu/gitops-example.git"
credential: github
oci:
app:
reference: "ghcr.io/get-glu/gitops-example/app:latest"

credentials:
github:
type: basic
basic:
username: glu

0 comments on commit 3cc1cb8

Please sign in to comment.