-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (48 loc) · 1.31 KB
/
debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Debugging Workflow
on:
workflow_dispatch:
inputs:
netmakerbranch:
description: netmaker branch to run on.
default: develop
required: true
netclientbranch:
description: netclient branch to run on.
default: develop
required: true
version:
description: version
required: true
workflow_call:
inputs:
netmakerbranch:
required: true
type: string
netclientbranch:
required: true
type: string
jobs:
packages:
runs-on: ubuntu-latest
steps:
- name: setup ssh
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/id_devops
chmod 600 ~/.ssh/id_devops
cat >>~/.ssh/config <<END
Host *.clustercat.com
User root
IdentityFile ~/.ssh/id_devops
StrictHostKeyChecking no
END
env:
SSH_KEY: ${{ secrets.TESTING_SSH_KEY }}
- name: set version
run: |
VERSION=$(echo ${{ inputs.version }} | tr -cd '[:digit:].')
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo ${VERSION}
- name: apt/rpm
run: |
ssh fileserver.clustercat.com cd packages; export VERSION=${VERSION}; export REVISION=0; echo $VERSION; echo $REVISION