2024-11-25 12:56:29 +01:00

26 lines
719 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
outputs:
url:
description: 'The URL of the deployed branch'
runs:
using: node20
main: dist/index.js