mirror of
https://github.com/Snigdha-OS/snigdhaos-kernel-switcher-dev.git
synced 2025-09-20 20:24:57 +02:00
🐛 fix(_tset): connection
y
This commit is contained in:
22
.github/workflows/mirror.yml
vendored
22
.github/workflows/mirror.yml
vendored
@@ -14,22 +14,24 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Step 2: Test SSH connection to GitLab (Debugging)
|
# Step 2: Set up SSH
|
||||||
- name: Test SSH Connection
|
- name: Set up SSH for GitLab
|
||||||
run: |
|
|
||||||
ssh -vT git@gitlab.com
|
|
||||||
|
|
||||||
# Step 3: Set up SSH for GitLab access
|
|
||||||
- name: Set up SSH
|
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.GITLAB_SSH_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.GITLAB_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
# Ensure the known_hosts file exists
|
# Ensure the known_hosts file exists and has correct permissions
|
||||||
touch ~/.ssh/known_hosts
|
touch ~/.ssh/known_hosts
|
||||||
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
chmod 644 ~/.ssh/known_hosts
|
||||||
|
# Add GitLab's host key to known_hosts
|
||||||
|
ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
# Step 4: Push the code to GitLab
|
# Step 3: Test SSH Connection (Debugging)
|
||||||
|
- name: Test SSH Connection
|
||||||
|
run: |
|
||||||
|
ssh -vT git@gitlab.com
|
||||||
|
|
||||||
|
# Step 4: Push to GitLab
|
||||||
- name: Push to GitLab
|
- name: Push to GitLab
|
||||||
run: |
|
run: |
|
||||||
git remote add gitlab git@gitlab.com:Snigdha-OS/snigdhaos-applications/snigdhaos-kernel-switcher-dev.git
|
git remote add gitlab git@gitlab.com:Snigdha-OS/snigdhaos-applications/snigdhaos-kernel-switcher-dev.git
|
||||||
|
Reference in New Issue
Block a user