Skip to content

Commit

Permalink
updates on Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
floryn90 committed Nov 10, 2024
1 parent f159b32 commit f820e68
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ prepare: src/bin/buildx
@docker run --rm -i -v $$(pwd):/work -u $$(id -u) \
klakegg/docker-project-prepare:edge \
-t target/bundle
@mv target/bundle/Makefile target/bundle/Makefile.original
@cat target/bundle/Makefile.original | sed "s:DOCKER_CLI_EXPERIMENTAL=enabled docker buildx:buildx:g" > target/bundle/Makefile
@rm target/bundle/Makefile.original
@mv target/bundle/Makefile target/bundle/Makefile.original
@cat target/bundle/Makefile.original | sed "s:--push:--provenance=true --sbom=true --push:g" > target/bundle/Makefile
@sed -i "s:DOCKER_CLI_EXPERIMENTAL=enabled docker buildx:buildx:g" target/bundle/Makefile
@sed -i "s:--push:--provenance=true --sbom=true --push:g" target/bundle/Makefile

test: test-docsy test-docuapi

Expand All @@ -46,7 +43,7 @@ bump:
@RELEASE=$(version) bump

src/bin/buildx:
@wget -q -O src/bin/buildx https://github.com/docker/buildx/releases/download/v0.17.1/buildx-v0.17.1.linux-amd64
@wget -q -O src/bin/buildx https://github.com/docker/buildx/releases/download/v0.18.0/buildx-v0.18.0.linux-amd64
@chmod a+x src/bin/buildx
@docker buildx create --use

Expand Down

0 comments on commit f820e68

Please sign in to comment.