Skip to content

Commit

Permalink
Add awslabs to git safe dir (#802)
Browse files Browse the repository at this point in the history
* Add awslabs to git safe dir
* SHA in makefile & comments
  • Loading branch information
ktasper authored May 2, 2024
1 parent 4cd9db6 commit cce9343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ WINDOWS_ARM64_BINARY=$(BINPATH)/windows-arm64/$(BINARY_NAME).exe
.PHONY: docker
docker: build-in-docker

%-in-docker:
%-in-docker: GITCOMMIT_SHA
docker run --rm \
--user $(UID):$(GID) \
--env TARGET_GOOS=$(TARGET_GOOS) \
Expand Down
3 changes: 3 additions & 0 deletions scripts/container_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ apk add --no-cache \
# Resolves permission issues for Go cache when
# building credential helper as non-root user.
mkdir /.cache && chmod 777 /.cache
# Resolves dubious ownership of git directory when
# building credential helper as root user.
git config --global --add safe.directory /go/src/github.com/awslabs/amazon-ecr-credential-helper

0 comments on commit cce9343

Please sign in to comment.