A
A
Anyutochka Slavkina2019-09-30 15:59:37
git
Anyutochka Slavkina, 2019-09-30 15:59:37

How to get a file from another git repository when deploying?

Hey).
I have 2 repositories on bitbucket, in one frontend (js, css), in the other backend (golang). Each of the gits has two master and develop branches, when building the backend, I need to pick up the manifest.json file from the corresponding frontend branch, which contains the decryption of the hashed resource files. How to do it?
Did I understand correctly that this division is more preferable than a monorepository?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Derepko, 2019-09-30
@xEpozZ

Do you use docker?
If yes, then the "virtual folder" connected via volume.
If not, then a script that downloads and moves to the right place. Here it is better to put the url, path and name of all other folders into variables, even if they are environment variables.
And if you are too lazy to pull from the Internet every time, you can hardcode copying a file from a disk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question