🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@wakeadmin/docker-build

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wakeadmin/docker-build

docker 构建和发布辅助工具

latest
npmnpm
Version
0.2.6
Version published
Weekly downloads
30
42.86%
Maintainers
2
Weekly downloads
 
Created
Source

运行

npx @wakeadmin/docker-build buildx

支持参数和环境变量:

  • imageName?: string // 镜像名称, 支持 DOCKER_IMAGE_NAME 环境变量配置, 也可以在 package.json 中配置
  • platforms?: string[] // 构建平台, 支持 DOCKER_PLATFORMS(使用,分割) 环境变量配置, 也可以在 package.json 中配置
  • tags?: string | string[] // 支持指定多个 tag, 支持 DOCKER_TAGS 环境变量配置, 也可以在 package.json 中配置(version)
  • latest?: boolean // 是否发布 latest 版本, 默认 true, 支持 DOCKER_PUBLISH_LATEST(true/false) 环境变量配置
  • push?: boolean // 是否发布, 默认 true, 支持 DOCKER_PUSH(true/false) 环境变量配置
  • buildArguments?: Record<string, string> // 构建参数, 支持 DOCKER_BUILD_ARGS(NAME=VALUE,NAME=VALUE) 环境变量配置
  • host?: string // 镜像仓库地址, 支持 DOCKER_SERVER 环境变量配置
  • user?: string // 镜像仓库用户名, 支持 DOCKER_USER 环境变量配置
  • password?: string // 镜像仓库密码, 支持 DOCKER_PASSWORD 环境变量配置
  • skipLogin?: boolean // 是否跳过登录, 默认 false, 支持 DOCKER_SKIP_LOGIN(true/false) 环境变量配置
  • skipIfTagBuilded?: boolean // 如果 tag 已经构建过,是否跳过构建, 默认 true, 支持 DOCKER_SKIP_IF_TAG_BUILDED(true/false) 环境变量配置
  • pull?: boolean // 是否拉取最新镜像, 默认 false, 支持 DOCKER_PULL(true/false) 环境变量配置
  • dryRun?: boolean // 是否 dry run, 默认 false

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts