fix(deps): update module github.com/gofiber/fiber/v2 to v2.52.6 #3

Merged
ngn merged 2 commits from renovate/github.com-gofiber-fiber-v2-2.x into main 2025-01-28 08:17:08 +03:00
3 changed files with 53 additions and 19 deletions
Showing only changes of commit 2b4ca31dc0 - Show all commits

View File

@ -0,0 +1,28 @@
name: Build docker image
on:
push:
branches: ["main"]
env:
REGISTRY: git.matterlinux.xyz
IMAGE: ${{gitea.repository}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: "https://github.com/actions/checkout@v4"
- name: Login to container repo
uses: "https://github.com/docker/login-action@v1"
with:
registry: ${{env.REGISTRY}}
username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}}
- name: Build image
run: |
docker build --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest .
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest

View File

@ -2,16 +2,23 @@ FROM golang:1.23.2
WORKDIR /app
COPY *.go ./
COPY *.mod ./
COPY *.sum ./
RUN useradd runner -r -u 1001 -d /app
RUN chown -R runner:runner /app
USER runner
COPY log ./log
COPY *.mod ./
COPY *.sum ./
RUN go mod download
COPY *.go ./
COPY Makefile ./
COPY lib ./lib
COPY routes ./routes
COPY log ./log
COPY public ./public
COPY routes ./routes
COPY templates ./templates
RUN go build .
RUN make
ENTRYPOINT ["/app/website"]
ENTRYPOINT ["/app/tracker"]

View File

@ -1,25 +1,24 @@
# website | MatterLinux website
![](https://git.matterlinux.xyz/matter/website/actions/workflows/docker.yml/badge.svg)
Soruce code of Matterlinux's offical website, which is
located at [matterlinux.xyz](https://matterlinux.xyz)
### Deployment
Web server can be built and deployed with docker compose using the following
configuration file:
Web server can be deployed with docker compose using the following configuration file:
```yaml
version: "3"
services:
website:
image: matterwebsite
restart: unless-stopped
build:
context: ./
container_name: matterwebsite
image: git.matterlinux.xyz/matter/website
ports:
- "127.0.0.1:9878:9878"
- "127.0.0.1:9878:9878"
volumes:
- "./content:/app/content"
- "./content:/app/content"
restart: unless-stopped
```
After saving the configuration file, you can build and run the docker container:
After saving the configuration file, you can run the docker container:
```bash
docker-compose up -d
```
@ -28,6 +27,6 @@ docker-compose up -d
Website content can be managed by editing JSON and markdown files
under the `content` direcotry.
MatterLinux's website content directory can be found in the
MatterLinux's website content directory can be found in the
[content](https://git.matterlinux.xyz/Matter/content)
repository.