MCPcopy Create free account
hub / github.com/docker/secrets-engine / gitTag

Function gitTag

x/release/command.go:269–275  ·  view source on GitHub ↗
(ctx context.Context, tag string)

Source from the content-addressed store, hash-verified

267}
268
269func gitTag(ctx context.Context, tag string) error {
270 cmd := exec.CommandContext(ctx, "git", "tag", tag, "-m", tag)
271 if out, err := cmd.CombinedOutput(); err != nil {
272 return fmt.Errorf("git tag (%s): %s", err, string(out))
273 }
274 return nil
275}
276
277func gitPushTags(ctx context.Context) error {
278 cmd := exec.CommandContext(ctx, "git", "push", "--tags")

Callers 1

GitTagMethod · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected