Compare commits
1 Commits
renovate/c
...
main
Author | SHA1 | Date | |
---|---|---|---|
5b57ca8412
|
45
.gitea/workflows/static_docker_build.yaml
Normal file
45
.gitea/workflows/static_docker_build.yaml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Build Docker images for static folder
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
tags: [ "*" ]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: static
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
acls:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: git.prettysunflower.moe/prettysunflower/kakigoori-static
|
||||||
|
-
|
||||||
|
name: Login to Gitea Container Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.prettysunflower.moe
|
||||||
|
username: ${{ vars.HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.HUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:static"
|
||||||
|
push: ${{ gitea.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
platforms: linux/amd64,linux/arm64
|
@@ -8,7 +8,7 @@ dependencies = [
|
|||||||
"asgiref==3.9.1",
|
"asgiref==3.9.1",
|
||||||
"boto3==1.39.3",
|
"boto3==1.39.3",
|
||||||
"botocore==1.39.3",
|
"botocore==1.39.3",
|
||||||
"certifi==2025.7.14",
|
"certifi==2025.6.15",
|
||||||
"charset-normalizer==3.4.2",
|
"charset-normalizer==3.4.2",
|
||||||
"click==8.2.1",
|
"click==8.2.1",
|
||||||
"django>=5.2.1",
|
"django>=5.2.1",
|
||||||
|
4
static/Caddyfile
Normal file
4
static/Caddyfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
:8002 {
|
||||||
|
root * /srv/
|
||||||
|
file_server
|
||||||
|
}
|
4
static/Dockerfile
Normal file
4
static/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM caddy:latest
|
||||||
|
|
||||||
|
COPY Caddyfile /etc/caddy/Caddyfile
|
||||||
|
COPY . /srv/
|
Reference in New Issue
Block a user