This commit is contained in:
parent
f0bba8af06
commit
0c7bc5abe0
4 changed files with 32 additions and 1 deletions
10
.forgejo/workflows/publish.yml
Normal file
10
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: selfhosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: podman manifest create -a git.farthergate.com/asr/phlexite-runtime:latest
|
||||
- run: podman build --platform linux/amd64,linux/arm64 --manifest git.farthergate.com/asr/phlexite-runtime:latest .
|
||||
- run: podman manifest push git.farthergate.com/asr/phlexite-runtime:latest --creds=asr:'${{secrets.PACKAGES_SECRET}}'
|
4
Caddyfile
Normal file
4
Caddyfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
:3000 {
|
||||
root * /var/www/html
|
||||
file_server
|
||||
}
|
4
Containerfile
Normal file
4
Containerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM caddy:alpine
|
||||
ADD Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]
|
13
README.md
13
README.md
|
@ -1,3 +1,16 @@
|
|||
# phlexite-docker
|
||||
|
||||
Run your Phlexite sites on Caddy in containers.
|
||||
|
||||
Usage:
|
||||
|
||||
```Dockerfile
|
||||
FROM git.farthergate.com/asr/phlexite AS build
|
||||
|
||||
ADD . /site
|
||||
RUN bundle && bundle exec ruby build.rb
|
||||
|
||||
FROM git.farthergate.com/asr/phlexite-runtime
|
||||
|
||||
COPY --from=build /site/_build /var/www/html
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue