-
-
Notifications
You must be signed in to change notification settings - Fork 82
35 lines (27 loc) · 691 Bytes
/
docker.yml
File metadata and controls
35 lines (27 loc) · 691 Bytes
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
name: Docker test
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: docker build -t vulnerablelightapp .
- name: Run Docker container
run: docker run -d -p 3000:3000 vulnerablelightapp
- name: Wait for the container to be ready
run: sleep 30
- name: Test the application
run: curl -k https://127.0.0.1:3000/swagger/