-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.09 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
#VERSION=0.1
name: CI
on: push
env:
SVC_NAME: sk-codename-svc
jobs:
pylint:
name: Pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python -m pip install pipenv pylint
# TODO: Fix the linting issue...
# - run: pipenv run pylint **/*.py
hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
docker:
name: Docker build smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# TODO: Use this when ready to push
- name: Build and push
uses: docker/build-push-action@v5
with:
push: false
tags: zerodaysec/${{ env.SVC_NAME }}:testing