DEVEX-20:
This commit is contained in:
parent
e6756e5027
commit
9f94f01434
@ -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
|
||||
chmod 600 ~/.ssh/my_key
|
||||
git clone --single-branch --branch $BRANCH "ssh://git@bitbucket.isb:443/$REPO_PATH.git"
|
||||
Loading…
x
Reference in New Issue
Block a user