Compare commits
15 commits
Author | SHA1 | Date | |
---|---|---|---|
63199041b9 | |||
0d99fe513f | |||
52196c54ca | |||
9f543ee745 | |||
21786e76af | |||
c44340db95 | |||
06baf838b3 | |||
2db778b808 | |||
5bd62bfd6b | |||
7df4ad1f59 | |||
cc46852c88 | |||
0972e93d93 | |||
88a724d269 | |||
2b0475450c | |||
173815310a |
5 changed files with 39 additions and 35 deletions
|
@ -1,34 +1,39 @@
|
|||
name: Publish Docker image
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub
|
||||
name: Push Docker image to Docker registry
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.APP_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||
|
||||
- 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
|
||||
images: tdpeuter/docker-test
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.APP_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: latest
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
FROM nginx:latest
|
||||
|
||||
# Copy your .well-known files
|
||||
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
|
||||
|
|
14
nginx.conf
14
nginx.conf
|
@ -17,8 +17,18 @@ http {
|
|||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /.well-known {
|
||||
alias /usr/share/nginx/html/.well-known;
|
||||
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,5 +0,0 @@
|
|||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://matrix.depeuter.dev"
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"m.server": "matrix.depeuter.dev:443"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue