pullImage param is added to main.yml #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
pullImage: true |