forked from HSWro/hswro_org
Compare commits
4 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
9233f5c5b6 | |
|
|
7c86a51ed1 | |
|
|
b7a56877e0 | |
|
|
d91f3c28c3 |
15
README.md
15
README.md
|
|
@ -38,3 +38,18 @@ Edit `_layouts/home.html`
|
||||||
|
|
||||||
Edit `_data/menus.yml`
|
Edit `_data/menus.yml`
|
||||||
|
|
||||||
|
### Rebuilding and pushing the build/serve images
|
||||||
|
|
||||||
|
You need to be authenticated to do this. Go to [Applications](https://git.hswro.org/user/settings/applications),
|
||||||
|
create a new Access Token with Access set to All and scope of Packages: Read and Write. Run `docker login git.hswro.org`,
|
||||||
|
enter your Forgejo username, use the Access Token as a password. From there you can publish images:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker build -t git.hswro.org/hswro/hswro_org_build -f docker/build.Dockerfile .
|
||||||
|
docker push git.hswro.org/hswro/hswro_org_build:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
docker build -t git.hswro.org/hswro/hswro_org_serve_base:caddy -f docker/serve_base.Dockerfile .
|
||||||
|
docker push git.hswro.org/hswro/hswro_org_serve_base:caddy
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM git.hswro.org/fleg/serve_base:caddy
|
FROM git.hswro.org/hswro/hswro_org_serve_base:caddy
|
||||||
|
|
||||||
# Copy the static website
|
# Copy the static website
|
||||||
# Use the .dockerignore file to control what ends up inside the image!
|
# Use the .dockerignore file to control what ends up inside the image!
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ RUN echo -e ":3000 {\n\
|
||||||
root * /var/www\n\
|
root * /var/www\n\
|
||||||
header /.well-known* Content-Type application/json\n\
|
header /.well-known* Content-Type application/json\n\
|
||||||
header /.well-known/matrix/client Access-Control-Allow-Origin *\n\
|
header /.well-known/matrix/client Access-Control-Allow-Origin *\n\
|
||||||
|
redir /d-i/trixie/preseed.cfg https://git.hswro.org/HSWro-infra/hswro-vm-provisioning/raw/branch/master/preseed.cfg temporary\n\
|
||||||
file_server\n\
|
file_server\n\
|
||||||
}" > /etc/caddy/Caddyfile
|
}" > /etc/caddy/Caddyfile
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue