diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..04e8b28 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -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 + diff --git a/Dockerfile b/Dockerfile index 55e0c48..258f610 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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