mirror of
https://github.com/unraid/api.git
synced 2026-01-08 01:29:49 -06:00
fix: switch to bot key
This commit is contained in:
93
.github/workflows/production.yml
vendored
93
.github/workflows/production.yml
vendored
@@ -5,33 +5,26 @@ on:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
# test:
|
||||
# runs-on: ubuntu-latest
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# steps:
|
||||
# - name: Checkout repo
|
||||
# uses: actions/checkout@v1
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v1
|
||||
|
||||
# - name: Use Node.js ${{ matrix.node-version }}
|
||||
# uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: ${{ matrix.node-version }}
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
# - name: Add SSH deploy key
|
||||
# run: |
|
||||
# mkdir ~/.ssh/
|
||||
# # Add keys
|
||||
# echo "${{ secrets.GITHUB_READONLY_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||
# echo "${{ secrets.GITHUB_READONLY_DEPLOY_KEY_PUB }}" > ~/.ssh/id_rsa.pub
|
||||
# # Verifiy keys
|
||||
# ssh-keygen -l -f ~/.ssh/id_rsa.pub
|
||||
# # Add github.com to known hosts
|
||||
# ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||
# # Set correct permissions
|
||||
# chmod 600 ~/.ssh/id_rsa
|
||||
- name: Add SSH deploy key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.UNRAID_BOT_SSH_KEY }}
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
|
||||
# - name: Installing node deps
|
||||
# run: npm ci
|
||||
- name: Installing node deps
|
||||
run: npm ci
|
||||
|
||||
# - name: Test
|
||||
# run: npm test
|
||||
@@ -39,33 +32,26 @@ jobs:
|
||||
# # env:
|
||||
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# lint:
|
||||
# runs-on: ubuntu-latest
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# steps:
|
||||
# - name: Checkout repo
|
||||
# uses: actions/checkout@v1
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v1
|
||||
|
||||
# - name: Use Node.js ${{ matrix.node-version }}
|
||||
# uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: ${{ matrix.node-version }}
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
# - name: Add SSH deploy key
|
||||
# run: |
|
||||
# mkdir ~/.ssh/
|
||||
# # Add keys
|
||||
# echo "${{ secrets.GITHUB_READONLY_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||
# echo "${{ secrets.GITHUB_READONLY_DEPLOY_KEY_PUB }}" > ~/.ssh/id_rsa.pub
|
||||
# # Verifiy keys
|
||||
# ssh-keygen -l -f ~/.ssh/id_rsa.pub
|
||||
# # Add github.com to known hosts
|
||||
# ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||
# # Set correct permissions
|
||||
# chmod 600 ~/.ssh/id_rsa
|
||||
- name: Add SSH deploy key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.UNRAID_BOT_SSH_KEY }}
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
|
||||
# - name: Installing node deps
|
||||
# run: npm install
|
||||
- name: Installing node deps
|
||||
run: npm install
|
||||
|
||||
# - name: Lint
|
||||
# uses: omgimalexis/xo-action@master
|
||||
@@ -91,17 +77,10 @@ jobs:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Add SSH deploy key
|
||||
run: |
|
||||
mkdir ~/.ssh/
|
||||
# Add keys
|
||||
echo "${{ secrets.GITHUB_READONLY_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||
echo "${{ secrets.GITHUB_READONLY_DEPLOY_KEY_PUB }}" > ~/.ssh/id_rsa.pub
|
||||
# Verifiy keys
|
||||
ssh-keygen -l -f ~/.ssh/id_rsa.pub
|
||||
# Add github.com to known hosts
|
||||
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||
# Set correct permissions
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.UNRAID_BOT_SSH_KEY }}
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
|
||||
- name: Installing node deps
|
||||
run: npm install
|
||||
|
||||
Reference in New Issue
Block a user