Skip to content

Commit

Permalink
test: debug failing docker-clone
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Moser <[email protected]>
  • Loading branch information
smoser committed Nov 15, 2023
1 parent 8d233ed commit 2516035
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ jobs:
echo "running kernel is: $(uname -a)"
- name: docker-clone
run: |
set -x
echo "$" make docker-clone "STACKER_DOCKER_BASE=docker://" CLONE_D="$PWD/.build/oci-clone"
make docker-clone "STACKER_DOCKER_BASE=docker://" CLONE_D="$PWD/.build/oci-clone"
echo make docker-clone returned $?
echo "BYE-BYE 99"
sh -c 'exit 99'
echo "real BYE-BYE 98"
exit 98
- name: Go-download
run: |
make go-download
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,13 @@ CLONE_D = $(BUILD_D)/oci-clone
CLONE_RETRIES = 3
.PHONY: docker-clone
docker-clone:
@echo STACKER_BUILD_IMAGES=$(STACKER_BUILD_IMAGES)
@echo CLONE_D=$(CLONE_D)
mkdir -p $(CLONE_D)
vr() { echo "$$" "$$@" 1>&2; "$$@"; }; \
for u in $(STACKER_BUILD_IMAGES); do \
name=$${u$(HASH)$(HASH)*/}; \
vr skopeo copy --retry-times $(CLONE_RETRIES) "$$u" "oci:$(CLONE_D):$${name}"; \
vr echo skopeo copy --retry-times $(CLONE_RETRIES) "$$u" "oci:$(CLONE_D):$${name}"; \
done

.PHONY: show-info
Expand Down

0 comments on commit 2516035

Please sign in to comment.