Skip to content

Commit

Permalink
add missed indentation for docker-build and update docker buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
haouc committed Aug 25, 2023
1 parent 8d5c893 commit 5a5f7a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: make test
- name: Upload code coverage
uses: codecov/codecov-action@v3
docker-build:
docker-build:
name: Build Docker images
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ BASE_IMAGE=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonro
GO_RUNNER_IMAGE=public.ecr.aws/eks-distro/kubernetes/go-runner:v0.15.0-eks-1-27-3
.PHONY: docker-buildx
docker-buildx: test
docker buildx build --platform=$(PLATFORMS) -t $(IMG)-$(GOARCH) --build-arg BASE_IMAGE=$(BASE_IMAGE) --build-arg BUILD_IMAGE=$(BUILD_IMAGE) --build-arg $(GOARCH) --load .
for platform in amd64 arm64; do \
docker buildx build --platform=linux/$$platform -t $(IMG)-$$platform --build-arg BASE_IMAGE=$(BASE_IMAGE) --build-arg BUILD_IMAGE=$(BUILD_IMAGE) --build-arg $$platform --load .; \
done

# Check formatting of source code files without modification.
check-format: FORMAT_FLAGS = -l
Expand Down

0 comments on commit 5a5f7a5

Please sign in to comment.