Skip to content

Commit

Permalink
Backup: Attempt to fix SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
thearchivalone committed Nov 22, 2024
1 parent 56b5f91 commit f3d82df
Showing 1 changed file with 45 additions and 63 deletions.
108 changes: 45 additions & 63 deletions .github/workflows/github-action-mirror-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup secure connection
id: secure
- name: Sync up to Bitbucket
id: sync
run: |
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Sync up to Bitbucket
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: '[email protected]:the_archival_one/brs-psp-research-initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"
chmod 700 ~/.ssh/id_ed25519
echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
git remote add mirror [email protected]:the_archival_one/brs-psp-research-initiative.git
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'
codeberg:
runs-on: ubuntu-24.04
Expand All @@ -39,21 +36,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup secure connection
id: secure
- name: Sync up to Codeberg
id: sync
run: |
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Sync up to Codeberg
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: '[email protected]:thearchivalone/BRS-PSP-Research-Initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"

chmod 700 ~/.ssh/id_ed25519
echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
git remote add mirror [email protected]:thearchivalone/BRS-PSP-Research-Initiative.git
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'
beanstalk:
runs-on: ubuntu-24.04
steps:
Expand All @@ -62,20 +56,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup secure connection
id: secure
- name: Sync up to Beanstalk
id: sync
run: |
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Sync up to Beanstalk
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: '[email protected]:/the-archival-one/brs-psp-research-initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"
echo "${{ secrets.BEANSTALK_SSH_PRIVATE }}" > ~/.ssh/id_rsa
chmod 700 ~/.ssh/id_rsa
echo "${{ secrets.BEANSTALK_SSH_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
ssh-keyscan the-archival-one.git.beanstalkapp.com
git remote add mirror [email protected]:/the-archival-one/brs-psp-research-initiative.git
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'
gitgud:
runs-on: ubuntu-24.04
Expand All @@ -85,20 +77,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup secure connection
id: secure
- name: Sync up to GitGud
id: sync
run: |
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Sync up to GitGud
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: '[email protected]:thearchivalone/brs-psp-research-initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"
chmod 700 ~/.ssh/id_ed25519
echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
git remote add mirror [email protected]:thearchivalone/brs-psp-research-initiative.git
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'
gitlab:
runs-on: ubuntu-24.04
Expand All @@ -108,20 +97,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup secure connection
id: secure
- name: Sync up to GitLab
id: sync
run: |
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Sync up to GitLab
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: '[email protected]:thearchivalone1/BRS-PSP-Research-Initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"
chmod 700 ~/.ssh/id_ed25519
echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
git remote add mirror [email protected]:thearchivalone1/BRS-PSP-Research-Initiative.git
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'
sourceforge:
runs-on: ubuntu-24.04
Expand All @@ -131,21 +117,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup secure connection
id: secure
- name: Sync up to Sourceforge
id: sync
run: |
git pull origin main
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Sync up to Sourceforge
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: 'ssh://[email protected]/p/brs-psp-research-initiative-1/code'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"
chmod 700 ~/.ssh/id_ed25519
echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
git remote add mirror ssh://[email protected]/p/brs-psp-research-initiative-1/code
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'
archive:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit f3d82df

Please sign in to comment.