Skip to content

Commit 1f62f5a

Browse files
committed
Remove the tag command
- This was never actually used in production in any way - I think we should move to using OCI artifacts to store builds and there's already a natural tag representation there - This code is Python and I am trying to push to using Go
1 parent 93e1996 commit 1f62f5a

File tree

3 files changed

+2
-159
lines changed

3 files changed

+2
-159
lines changed

cmd/coreos-assembler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
var buildCommands = []string{"init", "fetch", "build", "run", "prune", "clean", "list"}
1616
var advancedBuildCommands = []string{"buildfetch", "buildupload", "oc-adm-release", "push-container", "upload-oscontainer", "buildextend-extensions"}
1717
var buildextendCommands = []string{"aliyun", "aws", "azure", "digitalocean", "exoscale", "gcp", "ibmcloud", "kubevirt", "live", "metal", "metal4k", "nutanix", "openstack", "qemu", "secex", "virtualbox", "vmware", "vultr"}
18-
var utilityCommands = []string{"aws-replicate", "build-extensions-container", "compress", "generate-hashlist", "koji-upload", "kola", "push-container-manifest", "remote-build-container", "remote-prune", "remote-session", "sign", "tag", "update-variant"}
18+
var utilityCommands = []string{"aws-replicate", "build-extensions-container", "compress", "generate-hashlist", "koji-upload", "kola", "push-container-manifest", "remote-build-container", "remote-prune", "remote-session", "sign", "update-variant"}
1919
var otherCommands = []string{"shell", "meta"}
2020

2121
func init() {

src/cmd-build

+1-13
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Usage: coreos-assembler build --help
2929
--skip-prune Skip prunning previous builds
3030
-F | --fetch Also perform a fetch
3131
--strict Only allow installing locked packages when using lockfiles
32-
--tag TAG Set the given tag in the build metadata
3332
--version VERSION Use the given version instead of generating one based on current time
3433
3534
Additional environment variables supported:
@@ -49,10 +48,9 @@ SKIP_PRUNE=0
4948
VERSION=
5049
PARENT=
5150
PARENT_BUILD=
52-
TAG=
5351
STRICT=
5452
rc=0
55-
options=$(getopt --options hfFt: --longoptions tag:,help,fetch,force,version:,parent:,parent-build:,delay-meta-merge,force-nocache,force-image,skip-prune,strict -- "$@") || rc=$?
53+
options=$(getopt --options hfFt: --longoptions help,fetch,force,version:,parent:,parent-build:,delay-meta-merge,force-nocache,force-image,skip-prune,strict -- "$@") || rc=$?
5654
[ $rc -eq 0 ] || {
5755
print_help
5856
exit 1
@@ -95,10 +93,6 @@ while true; do
9593
shift
9694
PARENT_BUILD=$1
9795
;;
98-
-t | --tag)
99-
shift
100-
TAG=$1
101-
;;
10296
--)
10397
shift
10498
break
@@ -542,11 +536,5 @@ else
542536
fi
543537
rm builds/.build-commit
544538

545-
if [ -n "${TAG}" ]; then
546-
# ideally, we'd do this atomically before moving to builds/latest, but
547-
# meh... not much can go wrong with `cosa tag`
548-
/usr/lib/coreos-assembler/cmd-tag update --build "${buildid}" --tag "${TAG}"
549-
fi
550-
551539
# and finally, build the specified targets
552540
build_followup_targets

src/cmd-tag

-145
This file was deleted.

0 commit comments

Comments
 (0)