Skip to content

Commit

Permalink
SW-965-beam-os-build-action-will-fail-as-it-has-no-access-to-github-p…
Browse files Browse the repository at this point in the history
…rivate-repos (#89)

Changed the iobeam and mrb_hw_info submodule to bitbucket
added new secrets to the action
  • Loading branch information
Josef-MrBeam authored Jan 25, 2022
1 parent 5465c83 commit 067cdc3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,38 @@ jobs:
sudo apt update
sudo apt install coreutils p7zip-full qemu-user-static
- name: Configure SSH-Keys
env:
SSH_KEY_MOUNTMANAGER: ${{ secrets.DEPLOY_KEY_MOUNTMANAGER }}
SSH_KEY_MRBCHECK: ${{ secrets.DEPLOY_KEY_MRBCHECK }}
SSH_KEY_BITBUCKET: ${{ secrets.BITBUCKET_ACCESS_KEY }}
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY_BITBUCKET" > ~/.ssh/bitbucket.key
echo "$SSH_KEY_MOUNTMANAGER" > ~/.ssh/mountmanager.key
echo "$SSH_KEY_MRBCHECK" > ~/.ssh/mrbcheck.key
chmod 600 ~/.ssh/bitbucket.key
chmod 600 ~/.ssh/mountmanager.key
chmod 600 ~/.ssh/mrbcheck.key
touch ~/.ssh/known_hosts
ssh-keygen -R bitbucket.org
ssh-keygen -R github.com
ssh-keyscan -H bitbucket.org >> ~/.ssh/known_hosts
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
cat >>~/.ssh/config <<END
Host bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/bitbucket.key
Host github.com-mountmanager
HostName github.com
IdentityFile ~/.ssh/mountmanager.key
Host github.com-mrb_check
HostName github.com
IdentityFile ~/.ssh/mrbcheck.key
END
- name: Checkout CustomPiOS
uses: actions/checkout@v2
with:
Expand All @@ -60,7 +92,6 @@ jobs:
- name: Checkout Project Repository
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH_MRB }}
submodules: recursive
path: repository

Expand Down
12 changes: 6 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[submodule "src/modules/beamos/filesystem/iobeam"]
[submodule "src/modules/beamos/filesystem/repos/iobeam"]
path = src/modules/beamos/filesystem/repos/iobeam
url = git@github.com:mrbeam/iobeam.git
url = git@bitbucket.org:mrbeam/iobeam.git
branch = mrbeam2-stable
[submodule "src/modules/beamos/filesystem/mount_manager"]
[submodule "src/modules/beamos/filesystem/repos/mount_manager"]
path = src/modules/beamos/filesystem/repos/mount_manager
url = git@github.com:mrbeam/mount_manager.git
url = git@github.com-mountmanager:mrbeam/mount_manager.git
branch = mrbeam2-stable
[submodule "src/modules/beamos/filesystem/repos/mrb_hw_info"]
path = src/modules/beamos/filesystem/repos/mrb_hw_info
url = git@github.com:mrbeam/mrb_hw_info.git
url = git@bitbucket.org:mrbeam/mrb_hw_info.git
branch = mrbeam2-stable
[submodule "src/modules/beamos/filesystem/repos/mrb_check"]
path = src/modules/beamos/filesystem/repos/mrb_check
url = git@github.com:mrbeam/mrb_check.git
url = git@github.com-mrb_check:mrbeam/mrb_check.git
branch = mrbeam2-stable

0 comments on commit 067cdc3

Please sign in to comment.