Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soham901 committed Oct 2, 2024
1 parent 1ffc18d commit c5880dd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-and-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and run docker container

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: self-hosted

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Run the Docker container on port 8000
run: docker run -d -p 8000:8000 my-image-name:$(date +%s)
16 changes: 0 additions & 16 deletions .github/workflows/docker-image.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
caddy:
image: caddy:2
ports:
- "8080:80"
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
Expand Down

0 comments on commit c5880dd

Please sign in to comment.