From 5b309257732a7386bb01a2cffbb7cb91b6fe6f9e Mon Sep 17 00:00:00 2001 From: Sudarsan Reddy Date: Fri, 30 Sep 2022 10:26:55 +0100 Subject: [PATCH] TUN-6755: Remove unused publish functions We no longer need the functions that publish deb and rpm to the old pkg.cloudflare.com backed since we now send them to R2. --- Makefile | 16 ---------------- cfsetup.yaml | 27 --------------------------- 2 files changed, 43 deletions(-) diff --git a/Makefile b/Makefile index 555d57e2..691da9bb 100644 --- a/Makefile +++ b/Makefile @@ -145,22 +145,6 @@ endif test-ssh-server: docker-compose -f ssh_server_tests/docker-compose.yml up -define publish_package - chmod 664 $(BINARY_NAME)*.$(1); \ - for HOST in $(CF_PKG_HOSTS); do \ - ssh-keyscan -t ecdsa $$HOST >> ~/.ssh/known_hosts; \ - scp -p -4 $(BINARY_NAME)*.$(1) cfsync@$$HOST:/state/cf-pkg/staging/$(2)/$(TARGET_PUBLIC_REPO)/$(BINARY_NAME)/; \ - done -endef - -.PHONY: publish-deb -publish-deb: cloudflared-deb - $(call publish_package,deb,apt) - -.PHONY: publish-rpm -publish-rpm: cloudflared-rpm - $(call publish_package,rpm,yum) - cloudflared.1: cloudflared_man_template cat cloudflared_man_template | sed -e 's/\$${VERSION}/$(VERSION)/; s/\$${DATE}/$(DATE)/' > cloudflared.1 diff --git a/cfsetup.yaml b/cfsetup.yaml index 6af0f2de..9b8981de 100644 --- a/cfsetup.yaml +++ b/cfsetup.yaml @@ -119,18 +119,6 @@ stretch: &stretch - export GOOS=linux - export GOARCH=arm64 - make cloudflared-deb - publish-deb: - build_dir: *build_dir - builddeps: - - *pinned_go - - build-essential - - fakeroot - - rubygem-fpm - - openssh-client - post-cache: - - export GOOS=linux - - export GOARCH=amd64 - - make publish-deb github-release-macos-amd64: build_dir: *build_dir builddeps: &build_pygithub @@ -277,18 +265,3 @@ stretch: &stretch buster: *stretch bullseye: *stretch bookworm: *stretch -centos-7: - publish-rpm: - build_dir: *build_dir - builddeps: &el7_builddeps - - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm - pre-cache: - - yum install -y fakeroot - - yum upgrade -y binutils-2.27-44.base.el7.x86_64 - - wget https://go.dev/dl/go1.18.6.linux-amd64.tar.gz -P /tmp/ - - tar -C /usr/local -xzf /tmp/go1.18.6.linux-amd64.tar.gz - post-cache: - - export PATH=$PATH:/usr/local/go/bin - - export GOOS=linux - - export GOARCH=amd64 - - make publish-rpm