Skip to content

Commit

Permalink
Create hosty Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Sep 11, 2024
1 parent c52d337 commit 2142e0c
Show file tree
Hide file tree
Showing 17 changed files with 36,429 additions and 15 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
- uses: ./.
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter hosty-action build
- run: pnpm run --filter hosty-action test
server_ip: xxx.xxx.xxx.xxx
server_user: xxx
ssh_private_key: xxx
server_user_sudo_pass: xxx
handler: packages/hosty-actions/tests/simple.js
File renamed without changes.
21 changes: 21 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Hosty
description: Automate your deployments with ease
inputs:
server_ip:
description: The IP address of the server
required: true
server_user:
description: The username to use to connect to the server
required: true
ssh_private_key:
description: The private ssh key to use to connect to the server
required: true
server_user_sudo_pass:
description: The sudo password of the user on the server
required: true
handler:
description: a JS file that exports the action to perform and services to deploy/destroy.
required: true
runs:
using: node20
main: packages/hosty-actions/dist/index.js
1 change: 1 addition & 0 deletions packages/hosty-action/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
1 change: 1 addition & 0 deletions packages/hosty-action/dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2142e0c

Please sign in to comment.