Skip to content

Commit

Permalink
build cross-platform images for envoy_iptables
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Daniels <charles@styra.com>
  • Loading branch information
charlesdaniels committed Apr 4, 2022
1 parent 911b578 commit 6851060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
with:
go-version: '^1.15.5'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Install OPA
run: ./build/install-opa.sh

Expand Down
5 changes: 2 additions & 3 deletions envoy_iptables/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ build: image

.PHONY: image
image:
docker build -t $(REPOSITORY):latest -t $(REPOSITORY):$(VERSION) .
docker buildx build --platform=linux/amd64,linux/arm64 -t $(REPOSITORY):latest -t $(REPOSITORY):$(VERSION) .

.PHONY: push
push: build
docker push $(REPOSITORY):$(VERSION)
docker push $(REPOSITORY):latest
docker buildx build --push --platform=linux/amd64,linux/arm64 -t $(REPOSITORY):latest -t $(REPOSITORY):$(VERSION) .

0 comments on commit 6851060

Please sign in to comment.