-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (29 loc) · 842 Bytes
/
main.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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build application
uses: docker/build-push-action@v4
with:
tags: localbuild/django-in-docker-starter:latest
push: false
load: true
- name: Run app
run: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d web app
- name: Check app is being served through nginx
run: nc -zv localhost 8080
- uses: anchore/scan-action@v3
with:
image: "localbuild/django-in-docker-starter:latest"
fail-build: true
output-format: "table"
severity-cutoff: "medium"
- name: Teardown
run: docker compose down