This repository contains reusable GitHub Actions workflows.
File Path: .github/workflows/build-nodejs.yml
This workflow builds a Node.js project and uploads the build artifacts.
path-to-artifact
(required): The path to the build artifact(s) to be uploaded.
You can call this workflow from another workflow:
jobs:
build:
uses: postboys/workflows/.github/workflows/build-nodejs.yml@main
with:
path-to-artifact: 'dist/**'
File Path: .github/workflows/deploy.yml
This workflow deploys the project to a server using SSH.
SSH_HOST
(required): The SSH host of the server.SSH_PRIVATE_KEY
(required): The private SSH key for authentication.SSH_USER
(required): The SSH user for authentication.VAULT_ADDR
(required): The address of the Vault server.VAULT_ROLE_ID
(required): The role ID for Vault authentication.VAULT_SECRET_ID
(required): The secret ID for Vault authentication.
You can call this workflow from another workflow:
jobs:
deploy:
uses: postboys/workflows/.github/workflows/deploy.yml@main
with:
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
VAULT_ROLE_ID: ${{ secrets.VAULT_ROLE_ID }}
VAULT_SECRET_ID: ${{ secrets.VAULT_SECRET_ID }}