Skip to content

Commit

Permalink
changing repo name in Makefile (#414)
Browse files Browse the repository at this point in the history
* changing repo name in Makefile

* changing centauri from env vars to ibc
  • Loading branch information
Ciejo authored Sep 20, 2023
1 parent 8738a57 commit 7b21f19
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions hyperspace/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module-hyperspace=hyperspace
composable_centauri_image=composablefi/composable-centauri
composable_centauri_image_latest=composablefi/composable-centauri:latest
composable_ibc_image=composablefi/composable-ibc
composable_ibc_image_latest=composablefi/composable-ibc:latest
ifndef GITHUB_SHA
GITHUB_SHA=$(shell git rev-parse HEAD)
endif
composable_centauri_image_with_commit_hash="${composable_centauri_image}:${GITHUB_SHA}"
composable_ibc_image_with_commit_hash="${composable_ibc_image}:${GITHUB_SHA}"
hyperspace_image="composablefi/hyperspace:latest"

.PHONY: run-setup-hyperspace stop-setup-hyperspace build-release-hyperspace tests-hyperspace
Expand All @@ -15,32 +15,32 @@ run-setup-hyperspace:
-d \
--rm \
-ti \
--name composable_centauri \
--name composable_ibc \
-u1000:1000 \
-p9944:9944 \
-p9188:9188 \
-p9988:9988 \
$(composable_centauri_image)
$(composable_ibc_image)

stop-setup-hyperspace:
docker stop composable_centauri
docker stop composable_ibc

build-release-hyperspace:
cargo b -p $(module-hyperspace) --release

build-docker-image-hyperspace:
docker build -f scripts/hyperspace.Dockerfile -t ${composable_centauri_image_with_commit_hash} .
docker tag ${composable_centauri_image_with_commit_hash} ${composable_centauri_image_latest}
docker build -f scripts/hyperspace.Dockerfile -t ${composable_ibc_image_with_commit_hash} .
docker tag ${composable_ibc_image_with_commit_hash} ${composable_ibc_image_latest}

publish-docker-image-hyperspace:
docker push "${composable_centauri_image_with_commit_hash}"
docker push "${composable_centauri_image_latest}"
docker push "${composable_ibc_image_with_commit_hash}"
docker push "${composable_ibc_image_latest}"

tests-hyperspace:
make --ignore-errors stop-setup-hyperspace
sleep 3
make run-setup-hyperspace
./scripts/wait_for_polkadot_launch_container.sh
cargo t -p $(module-hyperspace) --all-features
docker stop composable_centauri
docker stop composable_ibc

0 comments on commit 7b21f19

Please sign in to comment.