stille
V2EX  ›  Docker

docker 利用 github 自动构建,如果自动 tag 版本号?

  •  
  •   stille ·
    stilleshan · Dec 2, 2019 · 6908 views
    This topic created in 2369 days ago, the information mentioned may be changed or developed.

    docker 链接了 github,读取了 dockerfile 自动构建了 latest 版.

    例如,github 仓库里的 dockerfile 我定义为 1.0 版本..第一次自动构建到 docker 上,打标为 xxx/xxx:latest.

    在版本升级后,更新 dockerfile,定义为 1.1 版,docker 自动构建最新的为 latest,之前的那个镜像变为 xxx/xxx:1.0

    以此类推...这个如何实现?

    1 replies    2019-12-31 08:43:08 +08:00
    x66
        1
    x66  
       Dec 31, 2019
    打 tag 的时候打两个版本号。
    第一次打 1.0 和 latest
    第二次打 1.1 和 latest 就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1557 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:37 · PVG 00:37 · LAX 09:37 · JFK 12:37
    ♥ Do have faith in what you're doing.