chore: 修改项目名
This commit is contained in:
parent
abd6bd83a0
commit
35bd784e6a
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "ci_monitor",
|
"name": "gitlab_monitor",
|
||||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
@ -25,7 +25,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: git.yingbo.im:333/zhaoyingbo/ci_monitor:${{ github.sha }}
|
tags: git.yingbo.im:333/zhaoyingbo/gitlab_monitor:${{ github.sha }}
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build-image
|
needs: build-image
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
key: ${{ secrets.SERVER_KEY }}
|
key: ${{ secrets.SERVER_KEY }}
|
||||||
port: ${{ secrets.SERVER_PORT }}
|
port: ${{ secrets.SERVER_PORT }}
|
||||||
source: docker-compose.yml
|
source: docker-compose.yml
|
||||||
target: /home/${{ secrets.SERVER_USERNAME }}/docker/ci_monitor
|
target: /home/${{ secrets.SERVER_USERNAME }}/docker/gitlab_monitor
|
||||||
# 登录服务器,执行docker-compose命令
|
# 登录服务器,执行docker-compose命令
|
||||||
- name: Login to the server and execute docker-compose command
|
- name: Login to the server and execute docker-compose command
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
@ -55,6 +55,6 @@ jobs:
|
|||||||
port: ${{ secrets.SERVER_PORT }}
|
port: ${{ secrets.SERVER_PORT }}
|
||||||
script: |
|
script: |
|
||||||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} git.yingbo.im:333
|
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} git.yingbo.im:333
|
||||||
cd /home/${{ secrets.SERVER_USERNAME }}/docker/ci_monitor
|
cd /home/${{ secrets.SERVER_USERNAME }}/docker/gitlab_monitor
|
||||||
sed -i "s/sha/${{ github.sha }}/g" docker-compose.yml
|
sed -i "s/sha/${{ github.sha }}/g" docker-compose.yml
|
||||||
docker compose up -d --force-recreate --no-deps ci_monitor
|
docker compose up -d --force-recreate --no-deps gitlab_monitor
|
||||||
|
@ -25,4 +25,4 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: micr.cloud.mioffice.cn/egg/ci_monitor:${{ github.sha }}
|
tags: micr.cloud.mioffice.cn/egg/gitlab_monitor:${{ github.sha }}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ci_monitor:
|
gitlab_monitor:
|
||||||
image: git.yingbo.im:333/zhaoyingbo/ci_monitor:sha
|
image: git.yingbo.im:333/zhaoyingbo/gitlab_monitor:sha
|
||||||
container_name: ci_monitor
|
container_name: gitlab_monitor
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 3001:3000
|
- 3001:3000
|
||||||
|
2
index.ts
2
index.ts
@ -10,7 +10,7 @@ const server = Bun.serve({
|
|||||||
async fetch(req) {
|
async fetch(req) {
|
||||||
try {
|
try {
|
||||||
const url = new URL(req.url)
|
const url = new URL(req.url)
|
||||||
const prefix = "/gitlab"
|
const prefix = "/gitlab_monitor"
|
||||||
// 根路由
|
// 根路由
|
||||||
if (url.pathname === `${prefix}/`)
|
if (url.pathname === `${prefix}/`)
|
||||||
return netTool.ok("hello, glade to see you!")
|
return netTool.ok("hello, glade to see you!")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "ci_monitor",
|
"name": "gitlab_monitor",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user