-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[teleport-update] Add teleport-update to build and archive #48839
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please produce a dev tag build and check every release asset to ensure that the file is included as expected, and that the other binaries and config files have the correct values
We have previously avoided using ^teleport
for new binary names because it is highly likely that we are matching against this (or equivocal) pattern in the build/release process. Tangentially related, this will cause some minor annoyance for users who use tab completion in their shell.
@@ -240,7 +240,7 @@ endif | |||
|
|||
# On Windows only build tsh. On all other platforms build teleport, tctl, | |||
# and tsh. | |||
BINS_default = teleport tctl tsh tbot fdpass-teleport | |||
BINS_default = teleport tctl tsh tbot fdpass-teleport teleport-update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the actual target for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines 398 to 400 in c7d8791
.PHONY: $(BUILDDIR)/teleport-update | |
$(BUILDDIR)/teleport-update: | |
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(BUILDDIR)/teleport-update $(BUILDFLAGS) ./tool/teleport-update |
Dev tag build: https://github.com/gravitational/teleport.e/actions/runs/11807261743 Executed from these test branches with version commit:
checked:
# teleport-ent-v18.0.0-dev.vapopov.2-linux-arm64-bin.tar.gz
root@d21716aae82e:/go/teleport# ./teleport-update version
Teleport v18.0.0-dev.vapopov.2 git:v18.0.0-dev.vapopov.2-0-g0c973b4 go1.23.3 # teleport-ent-v18.0.0-dev.vapopov.2-linux-arm64-fips-bin.tar.gz
root@d21716aae82e:/go/teleport# ./teleport-update version
Teleport v18.0.0-dev.vapopov.2 git:v18.0.0-dev.vapopov.2-0-g0c973b4 go1.23.3 X:boringcrypto # teleport-v18.0.0-dev.vapopov.2-linux-arm64-bin.tar.gz
root@d21716aae82e:/go/teleport# ./teleport-update version
Teleport v18.0.0-dev.vapopov.2 git:v18.0.0-dev.vapopov.2-0-g0c973b4 go1.23.3 |
Couple of findings after testing with tag build, deb and rpm packages were missing Fixed in last tag build: https://github.com/gravitational/teleport.e/actions/runs/11809885061 root@d21716aae82e:/go/teleport# dpkg-deb -c teleport-ent_18.0.0-dev.vapopov.4_amd64.deb
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./var/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./var/lib/
drwx------ 0/0 0 2024-11-13 03:32 ./var/lib/teleport/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./lib/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./lib/systemd/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./lib/systemd/system/
-rw-r--r-- 0/0 435 2024-11-13 03:23 ./lib/systemd/system/teleport.service
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./usr/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./usr/local/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./usr/local/bin/
-rwxr-xr-x 0/0 106517752 2024-11-13 03:23 ./usr/local/bin/tctl
-rwxr-xr-x 0/0 53067928 2024-11-13 03:23 ./usr/local/bin/teleport-update
-rwxr-xr-x 0/0 395906616 2024-11-13 03:23 ./usr/local/bin/teleport
-rwxr-xr-x 0/0 383352 2024-11-13 03:23 ./usr/local/bin/fdpass-teleport
-rwxr-xr-x 0/0 86569112 2024-11-13 03:23 ./usr/local/bin/tbot
-rwxr-xr-x 0/0 121371264 2024-11-13 03:23 ./usr/local/bin/tsh
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./usr/share/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./usr/share/doc/
drwxr-xr-x 0/0 0 2024-11-13 03:32 ./usr/share/doc/teleport-ent/
-rw-r--r-- 0/0 145 2024-11-13 03:32 ./usr/share/doc/teleport-ent/changelog.gz root@d21716aae82e:/go/teleport# tar -tvf teleport-ent-v18.0.0-dev.vapopov.4-darwin-amd64-bin.tar | grep -v 'teleport-ent/examples'
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/
-rwxr-xr-x runner/staff 2038 2024-11-13 03:31 teleport-ent/install
-rwxr-xr-x runner/staff 89370944 2024-11-13 03:31 teleport-ent/tbot
-rw-r--r-- runner/staff 260996 2024-11-13 03:31 teleport-ent/CHANGELOG.md
-rwxr-xr-x runner/staff 387552 2024-11-13 03:31 teleport-ent/fdpass-teleport
-rwxr-xr-x runner/staff 362399728 2024-11-13 03:31 teleport-ent/teleport
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tctl.app/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tsh.app/
-rw-r--r-- runner/staff 17316 2024-11-13 03:31 teleport-ent/README.md
-rw-r--r-- runner/staff 22 2024-11-13 03:31 teleport-ent/VERSION
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tsh.app/Contents/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tsh.app/Contents/_CodeSignature/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tsh.app/Contents/MacOS/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tsh.app/Contents/Library/
-rw-r--r-- runner/staff 12258 2024-11-13 03:31 teleport-ent/tsh.app/Contents/embedded.provisionprofile
-rw-r--r-- runner/staff 1486 2024-11-13 03:31 teleport-ent/tsh.app/Contents/Info.plist
-rw-r--r-- runner/staff 8 2024-11-13 03:31 teleport-ent/tsh.app/Contents/PkgInfo
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tsh.app/Contents/Library/LaunchDaemons/
-rw-r--r-- runner/staff 691 2024-11-13 03:31 teleport-ent/tsh.app/Contents/Library/LaunchDaemons/com.goteleport.tshdev.vnetd.plist
-rwxr-xr-x runner/staff 111914160 2024-11-13 03:31 teleport-ent/tsh.app/Contents/MacOS/tsh
-rw-r--r-- runner/staff 2532 2024-11-13 03:31 teleport-ent/tsh.app/Contents/_CodeSignature/CodeResources
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tctl.app/Contents/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tctl.app/Contents/_CodeSignature/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tctl.app/Contents/MacOS/
drwxr-xr-x runner/staff 0 2024-11-13 03:31 teleport-ent/tctl.app/Contents/Resources/
-rw-r--r-- runner/staff 12217 2024-11-13 03:31 teleport-ent/tctl.app/Contents/embedded.provisionprofile
-rw-r--r-- runner/staff 1489 2024-11-13 03:31 teleport-ent/tctl.app/Contents/Info.plist
-rw-r--r-- runner/staff 8 2024-11-13 03:31 teleport-ent/tctl.app/Contents/PkgInfo
-rw-r--r-- runner/staff 705577 2024-11-13 03:31 teleport-ent/tctl.app/Contents/Resources/app.icns
-rwxr-xr-x runner/staff 97947504 2024-11-13 03:31 teleport-ent/tctl.app/Contents/MacOS/tctl
-rw-r--r-- runner/staff 2585 2024-11-13 03:31 teleport-ent/tctl.app/Contents/_CodeSignature/CodeResources |
Ideally, That said, if this only applies to unreleased v18 builds, I don't see an issue with including it in rpm/debs prematurely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you publish this build as well?
Add comment for the buildflags
@fheinecke tag publish: https://github.com/gravitational/teleport.e/actions/runs/11824945136/job/32949041367 |
In this PR added
teleport-update
binary tofull
target and into install scripts, similar going to be created forteleport.e
Related: https://github.com/gravitational/cloud/issues/10289