Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
pms
Commits
69dec52d
提交
69dec52d
authored
5月 18, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(Config):生产环境配置
上级
a29e507a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
7 行删除
+25
-7
alibabacloud.yml
.github/workflows/alibabacloud.yml
+8
-5
kustomization.yaml
kustomization/overlays/prod/kustomization.yaml
+3
-2
service.yaml
kustomization/overlays/prod/service.yaml
+14
-0
没有找到文件。
.github/workflows/alibabacloud.yml
浏览文件 @
69dec52d
...
@@ -21,7 +21,8 @@ name: Build and Push to ACR
...
@@ -21,7 +21,8 @@ name: Build and Push to ACR
on
:
on
:
push
:
push
:
branches
:
[
"
develop"
]
### Production
branches
:
[
"
master"
]
env
:
env
:
REGION_ID
:
cn-shenzhen
REGION_ID
:
cn-shenzhen
...
@@ -46,7 +47,8 @@ permissions:
...
@@ -46,7 +47,8 @@ permissions:
jobs
:
jobs
:
build
:
build
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
environment
:
dev
### Production
environment
:
prod
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
@@ -80,17 +82,18 @@ jobs:
...
@@ -80,17 +82,18 @@ jobs:
# 3.2 Deploy the image to the ACK cluster
# 3.2 Deploy the image to the ACK cluster
-
name
:
Kustomize Set Image
-
name
:
Kustomize Set Image
run
:
|-
run
:
|-
cd kustomization/overlays/
dev
cd kustomization/overlays/
prod
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash /dev/stdin 3.8.6
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash /dev/stdin 3.8.6
./kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG
./kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG
### Production
-
name
:
Commit and Push
-
name
:
Commit and Push
run
:
|
run
:
|
git config user.name "Chuck"
git config user.name "Chuck"
git config user.email "Chuck@users.noreply.github.com"
git config user.email "Chuck@users.noreply.github.com"
git remote set-url origin "$GITLAB_URL"
git remote set-url origin "$GITLAB_URL"
git commit -am "
generated Image update
"
git commit -am "
Generated Image New Tag
"
git push origin
develop
git push origin
master
#- name: Commit files
#- name: Commit files
# run: |
# run: |
...
...
kustomization/overlays/prod/kustomization.yaml
浏览文件 @
69dec52d
...
@@ -9,4 +9,5 @@ commonLabels:
...
@@ -9,4 +9,5 @@ commonLabels:
commonAnnotations
:
commonAnnotations
:
note
:
This is prod!
note
:
This is prod!
patches
:
patches
:
-
configMap.yaml
-
path
:
./configMap.yaml
\ No newline at end of file
-
path
:
./service.yaml
\ No newline at end of file
kustomization/overlays/prod/service.yaml
0 → 100644
浏览文件 @
69dec52d
apiVersion
:
v1
kind
:
Service
metadata
:
# name: pms-svc
namespace
:
prod
spec
:
selector
:
app
:
pms
type
:
NodePort
ports
:
-
protocol
:
TCP
port
:
35150
nodePort
:
30150
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论