Dockerfile + CI/CD Pipeline
Deploy Portfolio Selfmade / deploy (push) Successful in 25s

This commit is contained in:
2026-05-10 14:10:30 +02:00
parent afb362c80b
commit 9950c32a8e
2 changed files with 33 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Deploy Portfolio Selfmade
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Deploy
run: |
docker build -t portfolio-selfmade:latest .
docker stop portfolio-selfmade 2>/dev/null || true
docker rm portfolio-selfmade 2>/dev/null || true
docker run -d --name portfolio-selfmade -p 8082:80 portfolio-selfmade:latest