AUTH-2718: Add target for publishing deb to pkg.cloudflare repo
This commit is contained in:
parent
92da73aa9d
commit
370c17e48c
7
Makefile
7
Makefile
|
@ -69,6 +69,13 @@ test: vet
|
||||||
test-ssh-server:
|
test-ssh-server:
|
||||||
docker-compose -f ssh_server_tests/docker-compose.yml up
|
docker-compose -f ssh_server_tests/docker-compose.yml up
|
||||||
|
|
||||||
|
.PHONY: publish-deb
|
||||||
|
publish-deb: cloudflared-deb
|
||||||
|
for HOST in $(CF_PKG_HOSTS); do \
|
||||||
|
ssh-keyscan -t rsa $$HOST >> ~/.ssh/known_hosts; \
|
||||||
|
scp -4 cloudflared_$(VERSION)_amd64.deb cfsync@$$HOST:/state/cf-pkg/staging/apt/$(FLAVOR)/cloudflared/; \
|
||||||
|
done
|
||||||
|
|
||||||
.PHONY: cloudflared-deb
|
.PHONY: cloudflared-deb
|
||||||
cloudflared-deb: cloudflared
|
cloudflared-deb: cloudflared
|
||||||
mkdir -p $(PACKAGE_DIR)
|
mkdir -p $(PACKAGE_DIR)
|
||||||
|
|
11
cfsetup.yaml
11
cfsetup.yaml
|
@ -22,6 +22,17 @@ stretch: &stretch
|
||||||
- export GOOS=linux
|
- export GOOS=linux
|
||||||
- export GOARCH=amd64
|
- export GOARCH=amd64
|
||||||
- make cloudflared-deb
|
- make cloudflared-deb
|
||||||
|
publish-deb:
|
||||||
|
build_dir: *build_dir
|
||||||
|
builddeps:
|
||||||
|
- *pinned_go
|
||||||
|
- build-essential
|
||||||
|
- fakeroot
|
||||||
|
- rubygem-fpm
|
||||||
|
post-cache:
|
||||||
|
- export GOOS=linux
|
||||||
|
- export GOARCH=amd64
|
||||||
|
- make publish-deb
|
||||||
release-linux-amd64:
|
release-linux-amd64:
|
||||||
build_dir: *build_dir
|
build_dir: *build_dir
|
||||||
builddeps:
|
builddeps:
|
||||||
|
|
Loading…
Reference in New Issue