Skip to content

Commit

Permalink
Add workflow for enable_ssl.sh for docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu authored Jul 1, 2024
1 parent f32a402 commit 5d191ae
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/install-dockerfile-and-check-ssl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docker Build and Test

on: [push]

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Build Docker image
run: docker build --network=host -t antmediaserver --build-arg LicenseKey="${{ secrets.ENTERPRISE_LICENSE }}" .

- name: Run Docker container
run: docker run -d --name antmedia --network=host -it antmediaserver

- name: Run enable_ssl.sh inside container
run: docker exec -it antmedia bash /usr/local/antmedia/enable_ssl.sh

- name: Verify container is running
run: |
docker ps -f name=antmedia
if [ $(docker ps -f name=antmedia --format '{{.Names}}') != "antmedia" ]; then
echo "Container is not running"
exit 1
fi
- name: Test application
run: |
docker exec -it antmedia curl -f http://localhost:5443 # Örneğin HTTP endpoint test
- name: Stop and remove container
run: |
docker stop antmedia
docker rm antmedia

0 comments on commit 5d191ae

Please sign in to comment.