Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,20 @@ jobs:
- name: Check coverage
run: make coverage

test-build:
test-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install latest Docker
run: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce

- name: Build Docker image
run: make docker-build

- name: Scan Docker image for vulnerabilities
run: make docker-scan
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
IMAGE ?= openrca/orca

.PHONY: format
format:
@tox -e test-tools -- black .
Expand All @@ -20,4 +22,8 @@ coverage:

.PHONY: docker-build
docker-build:
@docker build . -f Dockerfile -t openrca/orca
@docker build . -f Dockerfile -t $(IMAGE)

.PHONY: docker-scan
docker-scan:
@docker scan --accept-license --file Dockerfile --dependency-tree $(IMAGE)