feat: update
@@ -14,19 +14,30 @@ jobs:
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Install dependencies and build frontend
|
||||
- name: build frontend/Admin
|
||||
run: |
|
||||
cd frontend
|
||||
cd frontend/admin
|
||||
npm config set registry https://npm.hub.ipao.vip
|
||||
npm install
|
||||
npm run build
|
||||
rm dist/vite.svg
|
||||
cp src/assets/* dist/
|
||||
|
||||
- name: build frontend/Wechat
|
||||
run: |
|
||||
cd frontend/wechat
|
||||
npm config set registry https://npm.hub.ipao.vip
|
||||
npm install
|
||||
npm run build
|
||||
rm dist/vite.svg
|
||||
cp src/assets/* dist/
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "1.22"
|
||||
go-version: "1.24"
|
||||
|
||||
- name: Build Go application
|
||||
- name: Build Go App
|
||||
run: |
|
||||
cd backend
|
||||
mkdir -p build
|
||||
@@ -35,8 +46,10 @@ jobs:
|
||||
go env -w GONOSUMDB='git.ipao.vip'
|
||||
go mod tidy
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/app .
|
||||
cp -ap ../frontend/admin/dist build/dist/admin
|
||||
cp -ap ../frontend/wechat/dist build/dist/wechat
|
||||
|
||||
- name: Build final Docker image
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker login -u ${{ secrets.DOCKER_AF_USERNAME }} -p ${{ secrets.DOCKER_AF_PASSWORD }} docker-af.hub.ipao.vip
|
||||
docker build --push -t docker-af.hub.ipao.vip/rogeecn/test:latest .
|
||||
docker build --push -t docker-af.hub.ipao.vip/rogeecn/quyun:latest .
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM docker.hub.ipao.vip/alpine:3.20
|
||||
FROM docker.hub.ipao.vip/jrottenberg/ffmpeg:4.4-alpine
|
||||
|
||||
# Set timezone
|
||||
RUN apk add --no-cache tzdata && \
|
||||
|
||||
@@ -4,9 +4,12 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Hello</title>
|
||||
<title>Medias</title>
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
<meta name="description" content="趣云内容管理系统后台">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" type="image/x-icon" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" type="image/x-icon" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
BIN
frontend/admin/src/assets/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
frontend/admin/src/assets/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 487 KiB |
BIN
frontend/admin/src/assets/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
frontend/admin/src/assets/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 959 B |
BIN
frontend/admin/src/assets/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
frontend/admin/src/assets/favicon.ico
Normal file
|
After Width: | Height: | Size: 17 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
||||
|
Before Width: | Height: | Size: 496 B |
@@ -11,6 +11,10 @@
|
||||
{
|
||||
"path": "frontend/admin",
|
||||
"name": "Admin"
|
||||
},
|
||||
{
|
||||
"path": ".gitea/workflows",
|
||||
"name": "Workflow"
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
|
||||