Add action
Some checks failed
Build and Deploy / deploy (push) Failing after 2s

This commit is contained in:
Hugo Mårdbrink 2025-12-03 21:18:37 +01:00
parent 65ff41d412
commit d93976aef4

View file

@ -0,0 +1,20 @@
name: Build and Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: native
steps:
- uses: actions/checkout@v4
- name: Build image
run: podman build -t localhost/hugo-home:latest .
- name: Start/restart container
run: |
podman stop hugo-home || true
podman rm hugo-home || true
podman run -d --name hugo-home -p 127.0.0.1:8080:8080 localhost/hugo-home:latest