Skip to content

Commit edc86fa

Browse files
committed
Add GitHub actions
1 parent 08a270b commit edc86fa

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/actions.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
env:
11+
TEST_TAG: yorickp/maldet:test
12+
13+
jobs:
14+
docker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Build docker
20+
uses: docker/build-push-action@v3
21+
with:
22+
context: .
23+
load: true
24+
tags: ${{ env.TEST_TAG }}
25+
- name: Test
26+
run: docker run --rm ${{ env.TEST_TAG }}
27+
28+
# before_install:
29+
# - docker run --rm -i lukasmartinelli/hadolint hadolint --ignore DL4000 --ignore DL3008 - < Dockerfile
30+
31+

.github/workflows/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
env:
11+
TEST_TAG: yorickp/maldet:test
12+
13+
jobs:
14+
docker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Build docker
20+
uses: docker/build-push-action@v3
21+
with:
22+
context: .
23+
load: true
24+
tags: ${{ env.TEST_TAG }}
25+
- name: Test
26+
run: docker run --rm ${{ env.TEST_TAG }}
27+
28+
# before_install:
29+
# - docker run --rm -i lukasmartinelli/hadolint hadolint --ignore DL4000 --ignore DL3008 - < Dockerfile
30+
31+

0 commit comments

Comments
 (0)