diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..40ce86f --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -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}}' diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..83fcf53 --- /dev/null +++ b/Containerfile @@ -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