gpt4 book ai didi

github-actions - JIB 与 GitHub 操作

转载 作者:行者123 更新时间:2023-12-05 01:25:18 26 4
gpt4 key购买 nike

简介

我目前正在创建一个 GitHub Actions,它会自动构建一个容器。

而且我想知道是否可以创建一个 GitHub 操作来自动构建容器而无需在项目的 pom.xml 中添加 JIB

如果我们做不到,你能告诉我怎么做吗?

最佳答案

是的,你可以,在你的 GitHub 工作流上写下这段代码:

name: JIB container publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: JIB container build and publish
uses: MathieuSoysal/jib-container-publish.yml@v2.0.7
with:
PASSWORD: ${{ secrets.GITHUB_TOKEN }}

更多详情可以进入:https://github.com/MathieuSoysal/jib-container-publish.yml

关于github-actions - JIB 与 GitHub 操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70928372/

26 4 0
文章推荐: r - fromJSON 错误 ("employee.json") : not all data was parsed (0 chars were parsed out of a total of 13 chars)
文章推荐: sql - 按组提取最常见(计数最高)的条目
文章推荐: sql - COPY INTO in snowflake throws 表不存在