name: 'Build Backend' on: workflow_dispatch: inputs: repo_path: description: 'Репозиторий' required: true type: choice options: - devspc/devspace-apiregistry-generator-service - devspc/devspace-gateway - devspc/devspace-apiregistry-core-service - devspc/devspace-selfkit-ui default: devspc/devspace-apiregistry-generator-service branch: description: 'Ветка' required: true type: string default: master jobs: deploy-dev: name: 'Deploy to dev' runs-on: ubuntu-latest steps: - 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)" pwd ls -la ~/.ssh/ || echo "No .ssh dir" echo "$SSH_KEY" > ~/.ssh/my_key cat > ~/.ssh/config << 'EOF' Host bitbucket.isb HostName bitbucket.isb User git IdentityFile ~/.ssh/my_key ProxyCommand socat - PROXY:192.168.76.142:%h:%p,proxyport=8077 StrictHostKeyChecking no UserKnownHostsFile /dev/null IdentitiesOnly yes EOF chmod 600 ~/.ssh/config chmod 600 ~/.ssh/my_key git clone --single-branch --branch $BRANCH "ssh://git@bitbucket.isb:443/$REPO_PATH.git" . ls