Commit 47cfe7c 1 parent 80bc82c commit 47cfe7c Copy full SHA for 47cfe7c
File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,11 @@ jobs:
57
57
chmod 600 ~/.ssh/dts-ci-key
58
58
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
59
59
chmod 600 ~/.ssh/gitea-key
60
- cp ~/.ssh/config ~/.ssh/config-old
61
60
echo -e "\n
62
61
Host git.3mdeb.com\n
63
62
HostName git.3mdeb.com\n
64
63
IdentityFile ~/.ssh/gitea-key\n
65
- IdentitiesOnly yes" >> ~/.ssh/config
64
+ IdentitiesOnly yes" > ~/.ssh/config_deploy
66
65
- name : Get DTS version
67
66
id : dts-ver
68
67
shell : bash
@@ -117,7 +116,7 @@ jobs:
117
116
shell : bash
118
117
run : |
119
118
DTS_VER="${{steps.dts-ver.outputs.DTS_VER}}"
120
- git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
119
+ GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
121
120
cd dts-release-cicd-pipeline
122
121
echo ${DTS_VER} > LATEST_RELEASE
123
122
git add LATEST_RELEASE
@@ -140,5 +139,3 @@ jobs:
140
139
rm -rf dts-release-cicd-pipeline
141
140
rm -f ~/.ssh/gitea-key
142
141
rm -rf build
143
- rm -f ~/.ssh/config
144
- mv ~/.ssh/config-old ~/.ssh/config
Original file line number Diff line number Diff line change @@ -56,12 +56,11 @@ jobs:
56
56
chmod 600 ~/.ssh/dts-ci-key
57
57
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
58
58
chmod 600 ~/.ssh/gitea-key
59
- cp ~/.ssh/config ~/.ssh/config-old
60
59
echo -e "\n
61
60
Host git.3mdeb.com\n
62
61
HostName git.3mdeb.com\n
63
62
IdentityFile ~/.ssh/gitea-key\n
64
- IdentitiesOnly yes" >> ~/.ssh/config
63
+ IdentitiesOnly yes" > ~/.ssh/config_deploy
65
64
- name : Get DTS version
66
65
id : dts-ver
67
66
shell : bash
@@ -108,7 +107,7 @@ jobs:
108
107
shell : bash
109
108
run : |
110
109
DTS_VER="${{steps.dts-ver.outputs.DTS_VER}}"
111
- git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
110
+ GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
112
111
cd dts-release-cicd-pipeline
113
112
echo ${DTS_VER} > LATEST_RELEASE
114
113
git add LATEST_RELEASE
@@ -131,5 +130,3 @@ jobs:
131
130
rm -rf dts-release-cicd-pipeline
132
131
rm -f ~/.ssh/gitea-key
133
132
rm -rf build
134
- rm -f ~/.ssh/config
135
- mv ~/.ssh/config-old ~/.ssh/config
You can’t perform that action at this time.
0 commit comments