aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/pr.yml
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-15 17:55:34 +0100
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-19 15:20:31 +0100
commit2acad55d49f6ed90a842de7d1daa7c7bfb86b94b (patch)
treeb46244777514f6e89538ce33b2df8f90626a4f99 /.github/workflows/pr.yml
parent1371725a6ca716b25fbd39c850665e3b46bbf81f (diff)
downloadansible-rundeck-jobs-2acad55d49f6ed90a842de7d1daa7c7bfb86b94b.tar.gz
ansible-rundeck-jobs-2acad55d49f6ed90a842de7d1daa7c7bfb86b94b.tar.zst
ansible-rundeck-jobs-2acad55d49f6ed90a842de7d1daa7c7bfb86b94b.zip
use specially crafted rundeck docker image
Diffstat (limited to '.github/workflows/pr.yml')
-rw-r--r--.github/workflows/pr.yml12
1 files changed, 2 insertions, 10 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index b4a20da..3daa0e2 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -7,34 +7,26 @@ on:
7 branches: 7 branches:
8 - master 8 - master
9jobs: 9jobs:
10 prepare:
11 run
12 tests: 10 tests:
13 runs-on: ubuntu-latest 11 runs-on: ubuntu-latest
14 uses: actions/checkout@v2
15 services: 12 services:
16 rundeck: 13 rundeck:
17 image: rundeck/rundeck:3.4.3 14 image: fretlink/rundeckforci:3.4.7-latest
18 ports: 15 ports:
19 - 4440:4440 16 - 4440:4440
20 env: 17 env:
21 RUNDECK_TOKENS_FILE: /tokens.properties 18 RUNDECK_TOKENS_FILE: /etc/tokens.properties
22 volumes:
23 - ${{ github.workspace }}/test/tokens.properties:/tokens.properties
24 options: >- 19 options: >-
25 --health-interval=10s 20 --health-interval=10s
26 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440" 21 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440"
27 --health-timeout 5s 22 --health-timeout 5s
28 --health-retries 15 23 --health-retries 15
29 --entrypoint
30 24
31 steps: 25 steps:
32 - uses: actions/checkout@v2 26 - uses: actions/checkout@v2
33 with: 27 with:
34 clean: false
35 path: "${{ github.repository }}" 28 path: "${{ github.repository }}"
36 - run: | 29 - run: |
37 cat /home/runner/work/ansible-rundeck-jobs/ansible-rundeck-jobs/test/tokens.properties
38 sudo apt update && sudo apt install -y python3-pip 30 sudo apt update && sudo apt install -y python3-pip
39 pip3 install -r ${{ github.repository }}/requirements.txt 31 pip3 install -r ${{ github.repository }}/requirements.txt
40 pip3 install -r ${{ github.repository }}/tests/requirements.txt 32 pip3 install -r ${{ github.repository }}/tests/requirements.txt