Skip to content

Commit

Permalink
.github.workflows/ci.yml: Back up SSH config at workflow beginning
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Langowski <[email protected]>
  • Loading branch information
PLangowski committed Jul 24, 2024
1 parent 80bc82c commit 950f6af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
runs-on:
labels: dts-builder
steps:
- name: Backup SSH config
id: backup_ssh
run: |
cp ~/.ssh/config ~/.ssh/config-old
- name: Checkout meta-dts repo
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -57,7 +61,6 @@ jobs:
chmod 600 ~/.ssh/dts-ci-key
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
chmod 600 ~/.ssh/gitea-key
cp ~/.ssh/config ~/.ssh/config-old
echo -e "\n
Host git.3mdeb.com\n
HostName git.3mdeb.com\n
Expand Down Expand Up @@ -140,5 +143,4 @@ jobs:
rm -rf dts-release-cicd-pipeline
rm -f ~/.ssh/gitea-key
rm -rf build
rm -f ~/.ssh/config
mv ~/.ssh/config-old ~/.ssh/config

0 comments on commit 950f6af

Please sign in to comment.