update ci

This commit is contained in:
Rath Pascal 2025-02-08 15:15:53 +01:00
parent 0e0813c1a2
commit 873c295200
3 changed files with 7 additions and 5 deletions

View File

@ -13,6 +13,7 @@ jobs:
timeout-minutes: 1 timeout-minutes: 1
env: env:
CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}' CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}'
CI_DOMAIN: 'ci.ansibleguy.net'
steps: steps:
- name: Checkout - name: Checkout
@ -25,7 +26,7 @@ jobs:
shell: bash shell: bash
- name: Pulling logs - name: Pulling logs
run: curl https://ci.ansibleguy.net/api/job/${{ env.CI_JOB }}/logs?token=${{ secrets.CI_TOKEN_RO }} | jq > /tmp/test.log run: curl https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/logs?token=${{ secrets.CI_TOKEN_RO }} | jq > /tmp/test.log
shell: bash shell: bash
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -36,5 +37,5 @@ jobs:
- name: Checking job-state - name: Checking job-state
run: > run: >
curl https://ci.ansibleguy.net/api/job/${{ env.CI_JOB }}/state?token=${{ secrets.CI_TOKEN_RO }} | jq -r '.state' | grep -q 'failed' && exit 1 || exit 0 curl https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/state?token=${{ secrets.CI_TOKEN_RO }} | jq -r '.state' | grep -q 'failed' && exit 1 || exit 0
shell: bash shell: bash

View File

@ -10,6 +10,7 @@ jobs:
timeout-minutes: 1 timeout-minutes: 1
env: env:
CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}' CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}'
CI_DOMAIN: 'ci.ansibleguy.net'
steps: steps:
- name: Checkout - name: Checkout
@ -22,12 +23,12 @@ jobs:
shell: bash shell: bash
- name: Starting Tests - name: Starting Tests
run: curl -XPOST https://ci.ansibleguy.net/api/job/${{ env.CI_JOB }}?token=${{ secrets.CI_TOKEN_RW }} run: curl -XPOST https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}?token=${{ secrets.CI_TOKEN_RW }}
shell: bash shell: bash
- name: You can pull the current logs at this URL - name: You can pull the current logs at this URL
run: > run: >
echo "You can pull the current logs at this URL:" echo "You can pull the current logs at this URL:"
echo " > https://ci.ansibleguy.net/api/job/${{ env.CI_JOB }}/tail?token=${CI_TOKEN_RO}" echo " > https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/tail?token=${CI_TOKEN_RO}"
env: env:
CI_TOKEN_RO: "2b7bba30-9a37-4b57-be8a-99e23016ce70" CI_TOKEN_RO: "2b7bba30-9a37-4b57-be8a-99e23016ce70"

View File

@ -19,7 +19,7 @@ on:
- 'requirements_lint.txt' - 'requirements_lint.txt'
jobs: jobs:
build: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 2 timeout-minutes: 2
steps: steps: