Skip to content
Snippets Groups Projects
Commit b98f4c17 authored by Dmitry Rodionov's avatar Dmitry Rodionov
Browse files

chore(ci): inline submodules to fetch tags from

It is simpler to reuse the script from other downstream pipelines. They
do not need to know the names of submodules in case they change. With
the patch such a change requires only updates to picodata repository.
parent c7afffcc
No related branches found
No related tags found
1 merge request!1394chore(ci): inline submodules to fetch tags from
Pipeline #54700 failed
......@@ -144,7 +144,7 @@ build-base-image:
# the build scripts. Without them the job fails.
- &fetch-tags |
ci-log-section start "fetch-submodule-tags" Fetching tags for submodules
./tools/get_tags.py tarantool-sys tarantool-sys/third_party/luajit
./tools/get_tags.py
ci-log-section end "fetch-submodule-tags"
.parallel:
......
......@@ -6,6 +6,7 @@ import pathlib
import os
from time import sleep
SUBMODULES_TO_FETCH_TAGS = [".", "tarantool-sys", "tarantool-sys/third_party/luajit"]
GET_SOURCES_ATTEMPTS = int(os.environ.get('GET_SOURCES_ATTEMPTS', 3))
PROJECT_DIR = pathlib.Path(__file__).parent.parent
......@@ -50,7 +51,7 @@ def run_shell(path, shell=True, executable='/bin/bash', text=True):
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog="GetGitTags", description="Get project tags")
parser.add_argument("dirs", nargs="*", default=".", type=str)
parser.add_argument("dirs", nargs="*", default=SUBMODULES_TO_FETCH_TAGS, type=str)
args = parser.parse_args()
for path in args.dirs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment