Compare commits
24 commits
Author | SHA1 | Date | |
---|---|---|---|
63199041b9 | |||
0d99fe513f | |||
52196c54ca | |||
9f543ee745 | |||
21786e76af | |||
c44340db95 | |||
06baf838b3 | |||
2db778b808 | |||
5bd62bfd6b | |||
7df4ad1f59 | |||
cc46852c88 | |||
0972e93d93 | |||
88a724d269 | |||
2b0475450c | |||
173815310a | |||
c2b4aaf0a2 | |||
f91fd0f324 | |||
d694c590e2 | |||
9201c0d107 | |||
3b3ac535da | |||
a62a41249b | |||
de927fdb56 | |||
e9fa8472c2 | |||
61713b10b1 |
5 changed files with 75 additions and 4 deletions
39
.gitea/workflows/release.yaml
Normal file
39
.gitea/workflows/release.yaml
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: Publish Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker registry
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log in to Docker registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: git.depeuter.dev
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.APP_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: latest
|
0
.keep
Normal file
0
.keep
Normal file
|
@ -1,3 +1,4 @@
|
|||
FROM nginx:latest
|
||||
|
||||
COPY /var/www/.well-known /usr/share/nginx/html/.well-known
|
||||
# Replace the default NGINX configuration file with your custom configuration
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
|
34
nginx.conf
Normal file
34
nginx.conf
Normal file
|
@ -0,0 +1,34 @@
|
|||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
server {
|
||||
listen 0.0.0.0:12345;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
access_log off;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
default_type application/json;
|
||||
return 200 '{"m.server": "matrix.depeuter.dev:443"}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
access_log off;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
default_type application/json;
|
||||
return 200 '{"m.homeserver": {"base_url": "https://matrix.depeuter.dev"}}';
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"m.server": "matrix.depeuter.dev:443"
|
||||
}
|
Loading…
Reference in a new issue