Skip to content

Commit

Permalink
Merge pull request #1157 from mark-thm/me/1057
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored Jun 11, 2024
2 parents 3f68f08 + 7fb1f9a commit f81bbd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cli/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func publish() *cobra.Command {
var local bool
var cacheDir string
var offline bool
var lockfile string

cmd := &cobra.Command{
Use: "publish <config.yaml> <tag...>",
Expand Down Expand Up @@ -126,6 +127,7 @@ in a keychain.`,
build.WithVCS(withVCS),
build.WithAnnotations(annotations),
build.WithCacheDir(cacheDir, offline),
build.WithLockFile(lockfile),
build.WithTempDir(tmp),
build.WithAuth(domain, user, pass),
},
Expand Down Expand Up @@ -153,6 +155,7 @@ in a keychain.`,
cmd.Flags().StringSliceVar(&rawAnnotations, "annotations", []string{}, "OCI annotations to add. Separate with colon (key:value)")
cmd.Flags().StringVar(&cacheDir, "cache-dir", "", "directory to use for caching apk packages and indexes (default '' means to use system-defined cache directory)")
cmd.Flags().BoolVar(&offline, "offline", false, "do not use network to fetch packages (cache must be pre-populated)")
cmd.Flags().StringVar(&lockfile, "lockfile", "", "a path to .lock.json file (e.g. produced by apko lock) that constraints versions of packages to the listed ones (default '' means no additional constraints)")

// these are extra here just for publish; everything before is the same for BuildCmd as PublishCmd
cmd.Flags().BoolVar(&local, "local", false, "publish image just to local Docker daemon")
Expand Down

0 comments on commit f81bbd3

Please sign in to comment.