forked from ontola/atomic-server
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 892 Bytes
/
Copy pathdeployment.yml
File metadata and controls
34 lines (32 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deployment (re-use)
on:
workflow_call:
inputs:
environment:
required: true
type: string
remote_host:
required: true
type: string
secrets:
REMOTE_USER:
required: true
SSH_PRIVATE_KEY:
required: true
jobs:
deploy:
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
env:
REMOTE_USER: ${{ secrets.REMOTE_USER }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy using Dagger
uses: dagger/dagger-for-github@8.0.0
with:
version: "latest"
verb: call
args: deploy-server --remote-host ${{ inputs.remote_host }} --remote-user env://REMOTE_USER --ssh-private-key env://SSH_PRIVATE_KEY
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}