-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.17 KB
/
test.yml
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
name: Test
on: [push]
env:
IMAGE_NAME: "nginx"
IMAGE_TAG: "latest"
REGISTRY_URL: "ghcr.io"
REGISTRY_USERNAME: "${{ github.actor }}"
REGISTRY_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
APP_PORT: "80"
PATH: "/"
INITIAL_DELAY_SECONDS: "5"
PERIOD_SECONDS: "10"
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Lint YAML files
uses: ibiqlik/[email protected]
with:
config_file: .yamllint.yml
tester:
needs: linter
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Test Action with Sample Nginx Application
uses: Arv1nt3/kubernetes-deployment-tester-action@main
with:
image_name: '${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}'
registry_url: ${{ env.REGISTRY_URL }}
registry_username: ${{ env.REGISTRY_USERNAME }}
registry_token: ${{ env.REGISTRY_TOKEN }}
port: ${{ env.APP_PORT }}
path: ${{ env.PATH }}
initialDelaySeconds: ${{ env.INITIAL_DELAY_SECONDS }}
periodSeconds: ${{ env.PERIOD_SECONDS }}