DEVEX-20:
This commit is contained in:
parent
81de83c352
commit
61c58835dc
@ -19,23 +19,7 @@ runs:
|
|||||||
uses: https://git.binom.pw/otp/devops/proxy@main
|
uses: https://git.binom.pw/otp/devops/proxy@main
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ inputs.ssh-private-key }}
|
ssh-private-key: ${{ inputs.ssh-private-key }}
|
||||||
- name: "Configure http proxy"
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
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
|
|
||||||
- name: Cloning
|
- name: Cloning
|
||||||
run: |
|
run: |
|
||||||
|
echo 'Starting clone process ssh://git@bitbucket.isb:443/${{ inputs.repository }}.git'
|
||||||
GIT_TERMINAL_PROMPT=0 git clone --single-branch --branch "${{ inputs.branch }}" "ssh://git@bitbucket.isb:443/${{ inputs.repository }}.git" .
|
GIT_TERMINAL_PROMPT=0 git clone --single-branch --branch "${{ inputs.branch }}" "ssh://git@bitbucket.isb:443/${{ inputs.repository }}.git" .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user