Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
96666dd58d |
|
|
@ -6,8 +6,8 @@ on:
|
|||
- develop
|
||||
|
||||
env:
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/usercenter.web
|
||||
PUBLISH_PATH: usercenter.web
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/maketemplate.web
|
||||
PUBLISH_PATH: maketemplate.web
|
||||
PUBLISH_HOST: 10.255.255.44
|
||||
PUBLISH_PORT: 22
|
||||
PUBLISH_REPLICAS: 1 #启动副本数量
|
||||
|
|
@ -16,21 +16,17 @@ jobs:
|
|||
job1:
|
||||
name: 编译发布
|
||||
runs-on: linux
|
||||
container:
|
||||
image: node:16-bullseye
|
||||
volumes:
|
||||
#挂载缓存
|
||||
- /opt/.runner/node_modules:/cache
|
||||
|
||||
steps:
|
||||
- name: 下载源码
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 使用缓存
|
||||
uses: actions/cache@master
|
||||
with:
|
||||
mount: |
|
||||
node_modules
|
||||
hash_files: |
|
||||
package.json
|
||||
|
||||
- name: 编译项目
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ on:
|
|||
- master
|
||||
|
||||
env:
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/usercenter.web
|
||||
PUBLISH_PATH: usercenter.web
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/maketemplate.web
|
||||
PUBLISH_PATH: maketemplate.web
|
||||
PUBLISH_HOST: 10.255.255.74
|
||||
PUBLISH_PORT: 10022
|
||||
PUBLISH_REPLICAS: 1 #启动副本数量
|
||||
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: 下载源码
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 发布版本
|
||||
id: publish_version
|
||||
|
|
@ -33,16 +33,15 @@ jobs:
|
|||
needs: release
|
||||
steps:
|
||||
- name: 下载源码
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 下载源码
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 使用缓存
|
||||
uses: actions/cache@master
|
||||
with:
|
||||
mount: |
|
||||
node_modules
|
||||
hash_files: |
|
||||
package.json
|
||||
|
||||
- name: 编译项目
|
||||
shell: bash
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ on:
|
|||
- staging
|
||||
|
||||
env:
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/usercenter.web
|
||||
PUBLISH_PATH: usercenter.web
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/maketemplate.web
|
||||
PUBLISH_PATH: maketemplate.web
|
||||
PUBLISH_HOST: 10.255.255.3
|
||||
PUBLISH_PORT: 22
|
||||
PUBLISH_REPLICAS: 1 #启动副本数量
|
||||
|
|
@ -24,13 +24,15 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: 下载源码
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 使用缓存
|
||||
uses: actions/cache@master
|
||||
with:
|
||||
mount: |
|
||||
node_modules
|
||||
hash_files: |
|
||||
package.json
|
||||
|
||||
- name: 编译项目
|
||||
shell: bash
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ on:
|
|||
- published
|
||||
|
||||
env:
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/usercenter.web
|
||||
PUBLISH_PATH: usercenter.web
|
||||
IMAGE_NAME: ${{ gitea.repository_owner }}/maketemplate.web
|
||||
PUBLISH_PATH: maketemplate.web
|
||||
PUBLISH_HOST: 10.255.255.74
|
||||
PUBLISH_PORT: 10022
|
||||
PUBLISH_REPLICAS: 1 #启动副本数量
|
||||
|
|
@ -16,21 +16,18 @@ jobs:
|
|||
job1:
|
||||
name: 编译发布
|
||||
runs-on: linux
|
||||
container:
|
||||
image: node:16-bullseye
|
||||
volumes:
|
||||
#挂载缓存
|
||||
- /opt/.runner/node_modules:/cache
|
||||
|
||||
steps:
|
||||
- name: 下载源码
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 使用缓存
|
||||
uses: actions/cache@master
|
||||
with:
|
||||
mount: |
|
||||
node_modules
|
||||
hash_files: |
|
||||
package.json
|
||||
|
||||
- name: 编译项目
|
||||
shell: bash
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ version: "3"
|
|||
|
||||
services:
|
||||
usercenter-web:
|
||||
image: ${REGISTRY:-harbor.w.23544.com:8843}/marking/usercenter.web:${TAG:-latest}
|
||||
image: ${REGISTRY:-harbor.w.23544.com:8843}/marking/maketemplate.web:${TAG:-latest}
|
||||
hostname: marking
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
ports:
|
||||
- 4400:80
|
||||
- 8898:80
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: ${REPLICAS:-1}
|
||||
|
|
|
|||
Loading…
Reference in New Issue