Docker build
This commit is contained in:
parent
a4f9dadd8b
commit
11fc5d1a75
2 changed files with 25 additions and 0 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/farthergate.com:latest
|
||||||
|
- run: podman build --platform linux/amd64,linux/arm64 --manifest git.farthergate.com/asr/farthergate.com:latest .
|
||||||
|
- run: podman manifest push git.farthergate.com/asr/farthergate.com:latest --creds=asr:'${{secrets.PACKAGES_SECRET}}'
|
15
Containerfile
Normal file
15
Containerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM git.farthergate.com/asr/phlexite AS build
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/local/bin
|
||||||
|
RUN wget -O /usr/local/bin/tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
|
||||||
|
RUN chmod +x /usr/local/bin/tailwindcss
|
||||||
|
|
||||||
|
ENV TAILWINDCSS_INSTALL_DIR=/usr/local/bin
|
||||||
|
|
||||||
|
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