This commit is contained in:
parent
a26b79a6d1
commit
abb5136f39
31
.github/github_pushback.sh
vendored
Executable file
31
.github/github_pushback.sh
vendored
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
ssh-keyscan -H pika-os.com >> ~/.ssh/known_hosts
|
||||||
|
ssh-keyscan -H git.pika-os.com >> ~/.ssh/known_hosts
|
||||||
|
#echo -e "Host git.pika-os.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||||
|
#echo -e "Host git.pika-os.com\n\tIdentityFile ~/.ssh/id_rsa\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
|
||||||
|
#ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
||||||
|
#ssh-add - <<< "$1"
|
||||||
|
|
||||||
|
#export GIT_SSH_COMMAND="ssh -F ~/.ssh/config"
|
||||||
|
|
||||||
|
#ssh -o StrictHostKeyChecking=no -vT git@git.pika-os.com
|
||||||
|
#ssh -vT git@git.pika-os.com
|
||||||
|
|
||||||
|
# Commit changes to git
|
||||||
|
git config --global user.name 'Github Gitea Push Back Key - Cosmo'
|
||||||
|
git config --global user.email 'cosmo@pika-os.com'
|
||||||
|
#git config --global --add safe.directory /__w/gitea-pika-first-setup/gitea-pika-first-setup
|
||||||
|
|
||||||
|
git clone git@git.pika-os.com:custom-gui-packages/pika-first-setup
|
||||||
|
|
||||||
|
rm -rfv ./gitea-pika-first-setup/.git
|
||||||
|
cp -rfv ./pika-first-setup/.git ./gitea-pika-first-setup/
|
||||||
|
|
||||||
|
cd ./gitea-pika-first-setup
|
||||||
|
git add .
|
||||||
|
git commit -am"Github Mirror Push Back"
|
||||||
|
#git config pull.rebase true
|
||||||
|
#git pull
|
||||||
|
git push
|
11
.github/workflows/build-canaryv3.yml
vendored
11
.github/workflows/build-canaryv3.yml
vendored
@ -17,6 +17,17 @@ jobs:
|
|||||||
options: --privileged -it
|
options: --privileged -it
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Runner Origin Check
|
||||||
|
run: |
|
||||||
|
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
11
.github/workflows/build-nestv3.yml
vendored
11
.github/workflows/build-nestv3.yml
vendored
@ -17,6 +17,17 @@ jobs:
|
|||||||
options: --privileged -it
|
options: --privileged -it
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Runner Origin Check
|
||||||
|
run: |
|
||||||
|
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
41
.github/workflows/github-pushback.yml
vendored
Normal file
41
.github/workflows/github-pushback.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: Github Push back to gitea
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
|
||||||
|
volumes:
|
||||||
|
- /proc:/proc
|
||||||
|
options: --privileged -it
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Runner Origin Check
|
||||||
|
run: |
|
||||||
|
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
||||||
|
|
||||||
|
- name: Install SSH key
|
||||||
|
uses: shimataro/ssh-key-action@v2
|
||||||
|
with:
|
||||||
|
key: ${{ secrets.GITEA_SSH_KEY }}
|
||||||
|
name: id_rsa
|
||||||
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||||
|
if_key_exists: replace
|
||||||
|
|
||||||
|
- name: Run
|
||||||
|
run: git clone https://github.com/PikaOS-Linux/gitea-pika-first-setup
|
||||||
|
|
||||||
|
- name: Run
|
||||||
|
run: ./gitea-pika-first-setup/.github/github_pushback.sh
|
11
.github/workflows/release-canaryv3.yml
vendored
11
.github/workflows/release-canaryv3.yml
vendored
@ -17,6 +17,17 @@ jobs:
|
|||||||
options: --privileged -it
|
options: --privileged -it
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Runner Origin Check
|
||||||
|
run: |
|
||||||
|
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
11
.github/workflows/release-nestv3.yml
vendored
11
.github/workflows/release-nestv3.yml
vendored
@ -17,6 +17,17 @@ jobs:
|
|||||||
options: --privileged -it
|
options: --privileged -it
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Runner Origin Check
|
||||||
|
run: |
|
||||||
|
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user