Skip to content

Commit c5880dd

Browse files
committed
fix
1 parent 1ffc18d commit c5880dd

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/build-and-run.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build and run docker container
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: self-hosted
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Build the Docker image
16+
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
17+
- name: Run the Docker container on port 8000
18+
run: docker run -d -p 8000:8000 my-image-name:$(date +%s)

.github/workflows/docker-image.yml

-16
This file was deleted.

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
caddy:
1010
image: caddy:2
1111
ports:
12-
- "8080:80"
12+
- "80:80"
1313
- "443:443"
1414
volumes:
1515
- ./Caddyfile:/etc/caddy/Caddyfile

0 commit comments

Comments
 (0)