diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ed36588..d42dc45 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,6 +1,19 @@ name: 'Build Backend' on: workflow_dispatch: + inputs: + repo_path: + description: 'Репозиторий' + required: true + type: choice + options: + - devspc/devspace-apiregistry-generator-service + default: devspc/devspace-apiregistry-generator-service + branch: + description: 'Ветка' + required: true + type: string + default: main jobs: deploy-dev: name: 'Deploy to dev' @@ -9,6 +22,8 @@ jobs: - name: 'Cloning' env: SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + REPO_PATH: ${{ github.event.inputs.repo_path }} + BRANCH: ${{ github.event.inputs.branch }} run: | echo "Container ID: $(cat /proc/1/cgroup | grep docker)" echo "Inside Docker: $(docker info >/dev/null 2>&1 && echo yes || echo no)" @@ -26,4 +41,5 @@ jobs: IdentitiesOnly yes EOF chmod 600 ~/.ssh/config - chmod 600 ~/.ssh/my_key \ No newline at end of file + chmod 600 ~/.ssh/my_key + git clone --single-branch --branch $BRANCH "ssh://git@bitbucket.isb:443/$REPO_PATH.git" \ No newline at end of file