Skip to content

Commit

Permalink
Create Docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aif4thah authored Nov 8, 2024
1 parent 4df98e1 commit 58a4299
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/Docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- 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

0 comments on commit 58a4299

Please sign in to comment.