Skip to content

Commit

Permalink
Fix push sdk Makefile rule
Browse files Browse the repository at this point in the history
  • Loading branch information
rs22 committed Jul 8, 2020
1 parent 5e030ec commit 1a048fd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,21 @@ pull-latest-runtime:

push-sdk:
SUBTAG=$$(echo '${METAL_TAG}' | tr -d 'v') ; \
while [ ! -z "$$SUBTAG" ]; do \
docker tag metalfs/sdk-base:${METAL_TAG}-${VIVADO_EDITION} metalfs/sdk-base:$$SUBTAG-${VIVADO_EDITION} ; \
docker tag metalfs/sdk:${METAL_TAG}-${VIVADO_EDITION}-${PSL_TAG} metalfs/sdk:$$SUBTAG-${VIVADO_EDITION}-${PSL_TAG} ; \
docker push metalfs/sdk-base:$$SUBTAG-${VIVADO_EDITION} ; \
docker push metalfs/sdk:$$SUBTAG-${VIVADO_EDITION}-${PSL_TAG} ; \
SUBTAG=$$(echo "$$SUBTAG" | awk '{gsub(/\.?[0-9]+$$/,"",$$1);print}') ; \
done
if [ $$(echo $$SUBTAG | grep -iE '^[0-9]+\.[0-9]+\.[0-9]+$$' | wc -l) -ne 0 ] ; then \
while [ ! -z "$$SUBTAG" ]; do \
docker tag metalfs/sdk-base:${METAL_TAG}-${VIVADO_EDITION} metalfs/sdk-base:$$SUBTAG-${VIVADO_EDITION} ; \
docker tag metalfs/sdk:${METAL_TAG}-${VIVADO_EDITION}-${PSL_TAG} metalfs/sdk:$$SUBTAG-${VIVADO_EDITION}-${PSL_TAG} ; \
docker push metalfs/sdk-base:$$SUBTAG-${VIVADO_EDITION} ; \
docker push metalfs/sdk:$$SUBTAG-${VIVADO_EDITION}-${PSL_TAG} ; \
SUBTAG=$$(echo "$$SUBTAG" | awk '{gsub(/\.?[0-9]+$$/,"",$$1);print}') ; \
done ; \
fi

push-runtime:
docker push metalfs/runtime:${METAL_TAG}

push-latest-sdk: git-is-clean push-sdk
push-latest-sdk: git-is-clean
docker push metalfs/sdk-base:latest
docker push metalfs/sdk:latest
push-latest-runtime: git-is-clean push-runtime
push-latest-runtime: git-is-clean
docker push metalfs/runtime:latest

0 comments on commit 1a048fd

Please sign in to comment.