Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 启动容器时日志打印版本信息 #477

Merged
merged 8 commits into from
Feb 28, 2023
Merged

Conversation

ddadaal
Copy link
Member

@ddadaal ddadaal commented Feb 27, 2023

在启动auth, portal-web, mis-web, portal-server和mis-server时在日志中打印版本信息,包含tagcommit。npm会打印package.json的信息

image

注意:PR构建的容器的所log出来的commit号不是PR的commit的commit号!参考:actions/checkout#881

实现:

  1. 在构建容器时,根据构建容器时的最新commit,生成一个version.json文件放在容器pwd下
  2. 在这些组件启动时读取version.json和package.json的内容并生成内容

@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2023

🦋 Changeset detected

Latest commit: 90e33ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@scow/portal-server Patch
@scow/mis-server Patch
@scow/portal-web Patch
@scow/mis-web Patch
@scow/utils Patch
@scow/auth Patch
@scow/lib-web Patch
@scow/gateway Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Feb 27, 2023

Codecov Report

Base: 66.50% // Head: 66.50% // No change to project coverage 👍

Coverage data is based on head (90e33ff) compared to base (5cf3be8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #477   +/-   ##
=======================================
  Coverage   66.50%   66.50%           
=======================================
  Files         111      111           
  Lines        3072     3072           
  Branches      384      384           
=======================================
  Hits         2043     2043           
  Misses        977      977           
  Partials       52       52           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ddadaal ddadaal merged commit bdc990a into master Feb 28, 2023
@ddadaal ddadaal deleted the show-version-number branch February 28, 2023 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant