-
Notifications
You must be signed in to change notification settings - Fork 75
43 lines (38 loc) · 1.14 KB
/
main.yml
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
35
36
37
38
39
40
41
42
43
name: Example usage
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Start Deployment
uses: wshihadeh/docker-deployment-action@master
with:
remote_docker_host: ${{ secrets.HOST }}
ssh_private_key: ${{ secrets.PRIVATE_KEY }}
ssh_public_key: ${{ secrets.PUBLIC_KEY }}
deployment_mode: docker-compose
copy_stack_file: true
deploy_path: /root/deployment-test
stack_file_name: docker-compose.yml
pull_images_first: true
keep_files: 3
args: -p test up -d
- name: Start Deployment without copy
uses: wshihadeh/docker-deployment-action@master
with:
remote_docker_host: ${{ secrets.HOST }}
ssh_private_key: ${{ secrets.PRIVATE_KEY }}
ssh_public_key: ${{ secrets.PUBLIC_KEY }}
deployment_mode: docker-compose
copy_stack_file: false
deploy_path: /root/deployment-test
stack_file_name: docker-compose.yml
pull_images_first: true
keep_files: 3
args: -p test up -d