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 a2e2b41
Showing 1 changed file with 46 additions and 62 deletions.
108 changes: 46 additions & 62 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,20 @@ 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
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
- 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"
REMOTE: 'ssh://[email protected]/the-archival-one/brs-psp-research-initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.BEANSTALK_SSH_PRIVATE }}
GIT_SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }}

gitgud:
runs-on: ubuntu-24.04
Expand All @@ -85,20 +79,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 ssh://[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 +99,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 +119,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 a2e2b41

Please sign in to comment.