Skip to content

Commit

Permalink
Add platforms to build command (#5)
Browse files Browse the repository at this point in the history
* Add platforms to build command

Signed-off-by: John Kjell <john@testifysec.com>

* Set to static digest

Signed-off-by: John Kjell <john@testifysec.com>

---------

Signed-off-by: John Kjell <john@testifysec.com>
  • Loading branch information
jkjell authored Nov 22, 2023
1 parent d5aa330 commit 6bc5c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
step: build-image
attestations: "git github environment"
command: |
/bin/sh -c "docker buildx build -t ${{ steps.meta.outputs.tags }} --push ."
/bin/sh -c "docker buildx build --platform linux/amd64,linux/arm64 -t ${{ steps.meta.outputs.tags }} --push ."
outputs:
tags: ${{ steps.meta.outputs.tags }}

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cgr.dev/chainguard/go@sha256:c87a8cf30c9a4e58df04712e1bb0b98d8d0421cc924e88f6fca4a6fabf45c6b4 as builder
FROM cgr.dev/chainguard/go@sha256:605d81422aba573c17bfd6029a217e94a9575179a98355a99acbb6e028ca883b as builder

ARG TARGETPLATFORM
ARG TARGETOS
Expand All @@ -18,7 +18,7 @@ COPY . .

RUN go build -o bin/software

FROM cgr.dev/chainguard/static@sha256:a432665213f109d5e48111316030eecc5191654cf02a5b66ac6c5d6b310a5511
FROM cgr.dev/chainguard/static@sha256:676e989769aa9a5254fbfe14abb698804674b91c4d574bb33368d87930c5c472

# USER root

Expand Down

0 comments on commit 6bc5c8b

Please sign in to comment.