Add action
This commit is contained in:
parent
65ff41d412
commit
127ed89a0d
2 changed files with 12 additions and 1 deletions
11
.forgejo/workflows/deploy.yml
Normal file
11
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: podman build -t hugo-home:latest .
|
||||||
|
- run: |
|
||||||
|
podman stop hugo-home 2>/dev/null || true
|
||||||
|
podman rm hugo-home 2>/dev/null || true
|
||||||
|
podman run -d --name hugo-home --restart=always -p 127.0.0.1:8080:8080 hugo-home:latest
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.22.3-alpine AS builder
|
FROM docker.io/library/golang:1.22.3-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue