Skip to content

Commit

Permalink
1. simplify tags publish
Browse files Browse the repository at this point in the history
  • Loading branch information
iasergunin committed Dec 16, 2023
1 parent d79022e commit c2b8b91
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ go.work.sync:
cd sh && sh ./go.work.sync.sh


tag: git.tag tag.pkg

tag.pkg:
cd sh && sh ./tag.pkg.sh $(version)

git.tag: git.tag.create git.tag.push

# 1.0, "v2." added automatically
Expand Down
18 changes: 18 additions & 0 deletions sh/tag.pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

DIR=$(pwd)
drivers=$($DIR/utils/drivers.sh)

cd ../

tagVersion="v2.$1"

echo "\ntrm"
curl https://proxy.golang.org/github.com/avito-tech/go-transaction-manager/trm/v2/@v/$tagVersion.info

for driver in $drivers; do
if [ -d "$driver" ]; then
echo "\n$driver"
curl https://proxy.golang.org/github.com/avito-tech/go-transaction-manager/$driver/v2/@v/$tagVersion.info
fi
done

0 comments on commit c2b8b91

Please sign in to comment.