From dd59306eed03a7f1a46b8e9af00621239a7435b1 Mon Sep 17 00:00:00 2001 From: jppade Date: Wed, 2 Aug 2023 12:46:11 +0200 Subject: [PATCH] update tbs and fbs. --- cmd/services/filtersBlockService/go.mod | 2 +- cmd/services/tradesBlockService/go.mod | 2 +- ibm_single_deploy.sh | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 ibm_single_deploy.sh diff --git a/cmd/services/filtersBlockService/go.mod b/cmd/services/filtersBlockService/go.mod index a945c3fe2..341bea879 100644 --- a/cmd/services/filtersBlockService/go.mod +++ b/cmd/services/filtersBlockService/go.mod @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/services/filtersBlockService go 1.17 require ( - github.com/diadata-org/diadata v1.4.317-rc-1 + github.com/diadata-org/diadata v1.4.317-rc-2 github.com/segmentio/kafka-go v0.4.35 github.com/sirupsen/logrus v1.8.1 ) diff --git a/cmd/services/tradesBlockService/go.mod b/cmd/services/tradesBlockService/go.mod index f9ae550c5..ec8b62639 100644 --- a/cmd/services/tradesBlockService/go.mod +++ b/cmd/services/tradesBlockService/go.mod @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/services/tradesBlockService go 1.17 require ( - github.com/diadata-org/diadata v1.4.315-rc-2 + github.com/diadata-org/diadata v1.4.317-rc-2 github.com/segmentio/kafka-go v0.4.35 github.com/sirupsen/logrus v1.8.1 ) diff --git a/ibm_single_deploy.sh b/ibm_single_deploy.sh new file mode 100755 index 000000000..8a836c2f0 --- /dev/null +++ b/ibm_single_deploy.sh @@ -0,0 +1,15 @@ +dockerfile="Dockerfile-tradesBlockService" +imageName="tradesblockservice-test" +type="services" +version="v1.4.317-rc-2" + +build_and_push() { + docker build -f "build/$1" -t "diadata.$2" . + docker tag "diadata.$2" "us.icr.io/dia-registry/$3/$2:latest" + docker push "us.icr.io/dia-registry/$3/$2:latest" + + docker tag "diadata.$2" "us.icr.io/dia-registry/$3/$2:$version" + docker push "us.icr.io/dia-registry/$3/$2:$version" +} + +build_and_push "$dockerfile" "$imageName" "$type"