Andreas Svanberg aa14bde01f Support cloning via SSH
Enables deploying from private repositories.

Fixes #1
2025-09-29 15:30:00 +02:00

30 lines
859 B
YAML

name: 'Deploy to branch.dsv.su.se'
description: 'Deploy the current branch via Docker Compose to branch.dsv.su.se'
inputs:
ssh-key:
description: 'The SSH key to use for deploying'
default: ${{ secrets.BRANCH_DEPLOY_KEY }}
required: true
cleanup-ssh-key:
description: 'The SSH key to use for cleanup'
default: ${{ secrets.BRANCH_CLEANUP_KEY }}
required: true
mode:
description: 'The mode to use, either deploy or cleanup'
default: 'deploy'
required: true
compose-file:
description: 'The Docker Compose file to use'
default: 'compose.yaml'
required: true
clone-using:
description: 'The method to use for cloning the repository, either ssh or https'
default: 'https'
required: true
outputs:
url:
description: 'The URL of the deployed branch'
runs:
using: node20
main: dist/index.js