Add action
This commit is contained in:
parent
65ff41d412
commit
38a7c9337c
1 changed files with 20 additions and 0 deletions
20
.forgejo/workflows/deploy.yml
Normal file
20
.forgejo/workflows/deploy.yml
Normal 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 Docker image
|
||||
run: podman build -t
|
||||
localhost/hugo-home:latest .
|
||||
|
||||
- name: Restart container
|
||||
run: systemctl --user restart
|
||||
podman-hugo-home.service || true
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue