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",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
|
@ -25,7 +25,7 @@ jobs:
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
tags: git.yingbo.im:333/zhaoyingbo/ci_monitor:${{ github.sha }}
|
||||
tags: git.yingbo.im:333/zhaoyingbo/gitlab_monitor:${{ github.sha }}
|
||||
|
||||
deploy:
|
||||
needs: build-image
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
key: ${{ secrets.SERVER_KEY }}
|
||||
port: ${{ secrets.SERVER_PORT }}
|
||||
source: docker-compose.yml
|
||||
target: /home/${{ secrets.SERVER_USERNAME }}/docker/ci_monitor
|
||||
target: /home/${{ secrets.SERVER_USERNAME }}/docker/gitlab_monitor
|
||||
# 登录服务器,执行docker-compose命令
|
||||
- name: Login to the server and execute docker-compose command
|
||||
uses: appleboy/ssh-action@master
|
||||
@ -55,6 +55,6 @@ jobs:
|
||||
port: ${{ secrets.SERVER_PORT }}
|
||||
script: |
|
||||
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
|
||||
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
|
||||
with:
|
||||
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"
|
||||
|
||||
services:
|
||||
ci_monitor:
|
||||
image: git.yingbo.im:333/zhaoyingbo/ci_monitor:sha
|
||||
container_name: ci_monitor
|
||||
gitlab_monitor:
|
||||
image: git.yingbo.im:333/zhaoyingbo/gitlab_monitor:sha
|
||||
container_name: gitlab_monitor
|
||||
restart: always
|
||||
ports:
|
||||
- 3001:3000
|
||||
|
2
index.ts
2
index.ts
@ -10,7 +10,7 @@ const server = Bun.serve({
|
||||
async fetch(req) {
|
||||
try {
|
||||
const url = new URL(req.url)
|
||||
const prefix = "/gitlab"
|
||||
const prefix = "/gitlab_monitor"
|
||||
// 根路由
|
||||
if (url.pathname === `${prefix}/`)
|
||||
return netTool.ok("hello, glade to see you!")
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ci_monitor",
|
||||
"name": "gitlab_monitor",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user