Skip to content

Commit

Permalink
Merge pull request #380 from gatewayd-io/378-multi-
Browse files Browse the repository at this point in the history
378 multi-platform Docker image
  • Loading branch information
mostafa authored Dec 18, 2023
2 parents 99b98b1 + 9c886c1 commit e12b05f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
gatewaydio/gatewayd:latest
ghcr.io/gatewayd-io/gatewayd:${{ github.ref_name }}
ghcr.io/gatewayd-io/gatewayd:latest
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
- name: Scan Docker image with Syft and generate SBOM
run: |
go install github.com/anchore/syft/cmd/syft@latest
Expand Down
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ ARG TARGETOS
ARG TARGETARCH
ARG TARGETPLATFORM

# IF YOU SEE THIS MESSAGE, IT MEANS THAT THE PLATFORM YOU CHOSE IS NOT SUPPORTED
RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
echo "Target platform ${TARGETPLATFORM} is supported"; \
else \
echo "Target platform ${TARGETPLATFORM} is not supported"; \
exit 1; \
fi

WORKDIR /gatewayd
COPY . /gatewayd

Expand Down

0 comments on commit e12b05f

Please sign in to comment.