提交 3046d211 编写于 作者: L liqingping

chore: update version

上级 e28c9b76
......@@ -6,7 +6,7 @@ name: Release
on: [push]
env:
version: v0.2.1
version: v1.0.1
jobs:
docker:
......@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
platform: [ linux/amd64 ]
target: [ di-operator, di-server, di-webhook ]
target: [ di-orchestrator ]
steps:
- name: Checkout
uses: actions/checkout@v2
......@@ -26,12 +26,12 @@ jobs:
TARGET: ${{ matrix.target }}
run: |
DOCKER_IMAGE=$DOCKERIO_ORG/$TARGET
VERSION=${version}-edge
VERSION=${version}-nightly
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
if [ "${{ github.event_name }}" = "schedule" ]; then
VERSION=nightly
VERSION=edge
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
......
......@@ -4231,8 +4231,8 @@ subjects:
apiVersion: v1
data:
DI_JOB_DEFAULT_RESOURCES: '{"resources": {"requests": {"cpu": 1, "memory": "2Gi"}}}'
DI_ORCHESTRATOR_VERSION: v1.0.0
DI_SERVER_URL: http://di-server.di-system:8080
DI_ORCHESTRATOR_VERSION: v1.0.1
DI_SERVER_URL: http://di-server.di-system:8081
kind: ConfigMap
metadata:
name: di-config
......
......@@ -4,5 +4,5 @@ metadata:
name: di-config
data:
DI_SERVER_URL: "http://di-server.di-system:8081"
DI_ORCHESTRATOR_VERSION: v1.0.0
DI_ORCHESTRATOR_VERSION: v1.0.1
DI_JOB_DEFAULT_RESOURCES: '{"resources": {"requests": {"cpu": 1, "memory": "2Gi"}}}'
......@@ -20,6 +20,17 @@ fi
for f in ".gitlab-ci.yml"; do
echo "update ci version to ${version}"
sed -r "s|^(\s*)VERSION:(\s*)(.*)|\1VERSION: ${version}|" "$f" >.tmp
# sed -r "s|^(\s*)VERSION:(\s*)v[0-9+][\.0-9+]*|\1VERSION: ${version}|" "$f" > .tmp
mv .tmp "$f"
done
for f in "config/manager/di_config.yaml"; do
echo "update config map orchestrator version to ${version}"
sed -r "s|^(\s*)DI_ORCHESTRATOR_VERSION:(\s*)(.*)|\1DI_ORCHESTRATOR_VERSION: ${version}|" "$f" >.tmp
mv .tmp "$f"
done
for f in ".github/workflows/release.yaml"; do
echo "update github action version to ${version}"
sed -r "s|^(\s*)version:(\s*)(.*)|\1version: ${version}|" "$f" >.tmp
mv .tmp "$f"
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册