This commit is contained in:
parent
2209d77ac9
commit
8f873659fb
7
.github/github_pushback.sh
vendored
7
.github/github_pushback.sh
vendored
@ -1,12 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
if echo "${PWD##*/}" | grep "gitea-pika-first-setup"
|
|
||||||
then
|
|
||||||
echo "This is github attempt pushback"
|
|
||||||
else
|
|
||||||
echo "No push back here" && exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan pika-os.com >> ~/.ssh/known_hosts
|
ssh-keyscan pika-os.com >> ~/.ssh/known_hosts
|
||||||
ssh-keyscan git.pika-os.com >> ~/.ssh/known_hosts
|
ssh-keyscan git.pika-os.com >> ~/.ssh/known_hosts
|
||||||
|
12
.github/workflows/github-pushback.yml
vendored
12
.github/workflows/github-pushback.yml
vendored
@ -15,8 +15,20 @@ jobs:
|
|||||||
options: --privileged -it
|
options: --privileged -it
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Is github check
|
||||||
|
run: echo "${PWD##*/}" | grep "gitea-pika-first-setup" || exit 1
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install SSH key
|
||||||
|
uses: shimataro/ssh-key-action@v2
|
||||||
|
with:
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
name: id_rsa
|
||||||
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||||
|
if_key_exists: replace
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
env:
|
env:
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user