-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
54 lines (54 loc) · 1.53 KB
/
action.yml
File metadata and controls
54 lines (54 loc) · 1.53 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: poDTester
description: Run poDTest to build and test Docker web app containers
author: h4nz0x
branding:
color: yellow
icon: activity
inputs:
dockerfile-path:
description: Path to the Dockerfile
required: true
port:
description: Port to expose
required: true
health-check-path:
description: Health check endpoint path
required: true
health-check-timeout:
description: Health check timeout in seconds
required: false
default: '10'
health-check-interval:
description: Health check interval in seconds
required: false
default: '5'
build-timeout:
description: Build timeout in seconds
required: false
default: '300'
hot-fix:
description: Enable hot-fix mode
required: false
default: 'false'
runs:
using: composite
steps:
- name: Setup poDTest Binary
shell: bash
run: |
mkdir -p /tmp/podtest
cp ${{ github.action_path }}/poDTest /tmp/podtest/poDTest
chmod +x /tmp/podtest/poDTest
- name: Run poDTest
shell: bash
run: |
/tmp/podtest/poDTest \
--dockerfile-path "${{ inputs.dockerfile-path }}" \
--port ${{ inputs.port }} \
--health-check-path "${{ inputs.health-check-path }}" \
--health-check-timeout ${{ inputs.health-check-timeout }} \
--health-check-interval ${{ inputs.health-check-interval }} \
--build-timeout ${{ inputs.build-timeout }} \
--hot-fix ${{ inputs.hot-fix }}
env:
DOCKER_HOST: unix:///var/run/docker.sock