-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1.01 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
name: "Github Action Test"
on: [push]
jobs:
integration-test:
name: Action Integration Test
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v2
- name: Test Stack Creation
uses: ./
with:
url: ${{ secrets.PORTAINER_URL }}
username: ${{ secrets.PORTAINER_USERNAME }}
password: ${{ secrets.PORTAINER_PASSWORD }}
environment_id: 6
stack_name: portainer-stack-deployment-test
stack_file_path: teststack.yml.mustache
mustache_variables: '{"image":"hello-world"}'
- name: Test Stack Deletion
uses: ./
with:
url: ${{ secrets.PORTAINER_URL }}
username: ${{ secrets.PORTAINER_USERNAME }}
password: ${{ secrets.PORTAINER_PASSWORD }}
environment_id: 6
stack_name: portainer-stack-deployment-test
stack_file_path: teststack.yml.mustache
mustache_variables: '{"image":"hello-world"}'
delete: true