update ci
This commit is contained in:
		
							parent
							
								
									338cc35947
								
							
						
					
					
						commit
						b0421a1ea3
					
				|  | @ -1,4 +1 @@ | ||||||
| --- | --- | ||||||
| 
 |  | ||||||
| ko_fi: ansible0guy |  | ||||||
| github: ansibleguy |  | ||||||
|  |  | ||||||
|  | @ -0,0 +1,41 @@ | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | name: Integration-Tests | ||||||
|  | 
 | ||||||
|  | on: | ||||||
|  |   schedule: | ||||||
|  |     - cron: "55 6 * * *" | ||||||
|  |   workflow_dispatch: | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   test: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     timeout-minutes: 1 | ||||||
|  |     env: | ||||||
|  |       CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}' | ||||||
|  |       CI_DOMAIN: 'ci.ansibleguy.net' | ||||||
|  | 
 | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: | ||||||
|  |           ref: ${{ github.ref }} | ||||||
|  | 
 | ||||||
|  |       - name: Install dependencies | ||||||
|  |         run: sudo apt install curl jq | ||||||
|  |         shell: bash | ||||||
|  | 
 | ||||||
|  |       - name: Pulling logs | ||||||
|  |         run: curl -f https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/logs?token=${{ secrets.CI_TOKEN_RW }} | jq > /tmp/test.log | ||||||
|  |         shell: bash | ||||||
|  | 
 | ||||||
|  |       - uses: actions/upload-artifact@v4 | ||||||
|  |         with: | ||||||
|  |           name: test-logs | ||||||
|  |           path: /tmp/test.log | ||||||
|  |           retention-days: 14 | ||||||
|  | 
 | ||||||
|  |       - name: Checking job-state | ||||||
|  |         run: > | ||||||
|  |           curl https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/state?token=${{ secrets.CI_TOKEN_RW }} | jq -r '.state' | grep -q 'failed' && exit 1 || exit 0 | ||||||
|  |         shell: bash | ||||||
|  | @ -0,0 +1,34 @@ | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | name: Integration-Tests Execution | ||||||
|  | 
 | ||||||
|  | on: workflow_dispatch | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   test: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     timeout-minutes: 1 | ||||||
|  |     env: | ||||||
|  |       CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}' | ||||||
|  |       CI_DOMAIN: 'ci.ansibleguy.net' | ||||||
|  | 
 | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: | ||||||
|  |           ref: ${{ github.ref }} | ||||||
|  | 
 | ||||||
|  |       - name: Install dependencies | ||||||
|  |         run: sudo apt install curl | ||||||
|  |         shell: bash | ||||||
|  | 
 | ||||||
|  |       - name: Starting Tests | ||||||
|  |         run: curl -f -XPOST https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}?token=${{ secrets.CI_TOKEN_RW }} | ||||||
|  |         shell: bash | ||||||
|  | 
 | ||||||
|  |       - name: You can pull the current logs at this URL | ||||||
|  |         run: > | ||||||
|  |           echo "You can pull the current logs at this URL:" | ||||||
|  |           echo " > https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/tail?token=${CI_TOKEN_RO}" | ||||||
|  |         env: | ||||||
|  |           CI_TOKEN_RO: "2b7bba30-9a37-4b57-be8a-99e23016ce70" | ||||||
							
								
								
									
										16
									
								
								README.md
								
								
								
								
							
							
						
						
									
										16
									
								
								README.md
								
								
								
								
							|  | @ -5,18 +5,20 @@ Ansible Role to deploy a ZoneMinder IP-CAM server. | ||||||
| 
 | 
 | ||||||
| Read into the [official documentation](https://zoneminder.readthedocs.io/en/stable/userguide/gettingstarted.html) on how to add ip-cams and so on. | Read into the [official documentation](https://zoneminder.readthedocs.io/en/stable/userguide/gettingstarted.html) on how to add ip-cams and so on. | ||||||
| 
 | 
 | ||||||
| <a href='https://ko-fi.com/ansible0guy' target='_blank'><img height='35' style='border:0px;height:46px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy me a coffee' /> | [](https://github.com/ansibleguy/sw_zoneminder/actions/workflows/lint.yml) | ||||||
| 
 |  | ||||||
| [](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/molecule.sh.j2) |  | ||||||
| [](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/yamllint.sh.j2) |  | ||||||
| [](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/pylint.sh.j2) |  | ||||||
| [](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/ansiblelint.sh.j2) |  | ||||||
| [](https://galaxy.ansible.com/ui/standalone/roles/ansibleguy/sw_zoneminder) | [](https://galaxy.ansible.com/ui/standalone/roles/ansibleguy/sw_zoneminder) | ||||||
| 
 | 
 | ||||||
| Molecule Logs: [Short](https://badges.ansibleguy.net/log/molecule_sw_zoneminder_test_short.log), [Full](https://badges.ansibleguy.net/log/molecule_sw_zoneminder_test.log) | **Molecule Integration-Tests**: | ||||||
|  | 
 | ||||||
|  | * Status: [](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/molecule.sh.j2) | | ||||||
|  | [](https://github.com/ansibleguy/sw_zoneminder/actions/workflows/integration_test_result.yml) | ||||||
|  | * Logs: [API](https://ci.ansibleguy.net/api/job/ansible-test-molecule-sw_zoneminder/logs?token=2b7bba30-9a37-4b57-be8a-99e23016ce70&lines=1000) | [Short](https://badges.ansibleguy.net/log/molecule_sw_zoneminder_test_short.log) | [Full](https://badges.ansibleguy.net/log/molecule_sw_zoneminder_test.log) | ||||||
|  | 
 | ||||||
|  | Internal CI: [Tester Role](https://github.com/ansibleguy/_meta_cicd) | [Jobs API](https://github.com/O-X-L/github-self-hosted-jobs-systemd) | ||||||
| 
 | 
 | ||||||
| **Tested:** | **Tested:** | ||||||
| * Debian 11 | * Debian 11 | ||||||
|  | * Debian 12 | ||||||
| 
 | 
 | ||||||
| ---- | ---- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue