diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 1cebf58ea..130d6f177 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -41,6 +41,7 @@ jobs: run: | export PATH=$PATH:$HOME/.local/bin make blobfuse-proxy + sudo dpkg -i pkg/blobfuse-proxy/debpackage.deb - name: Get code coverage env: diff --git a/.gitignore b/.gitignore index 64ddbb83a..303cb669d 100644 --- a/.gitignore +++ b/.gitignore @@ -69,3 +69,5 @@ cscope.* /bazel-* *.pyc profile.cov + +pkg/blobfuse-proxy/debpackage/usr/ diff --git a/Makefile b/Makefile index 9d79fb374..025a116a7 100644 --- a/Makefile +++ b/Makefile @@ -170,7 +170,9 @@ delete-metrics-svc: .PHONY: blobfuse-proxy blobfuse-proxy: - CGO_ENABLED=0 GOOS=linux go build -mod vendor -ldflags="-s -w" -o _output/blobfuse-proxy ./pkg/blobfuse-proxy + mkdir -p ./pkg/blobfuse-proxy/debpackage/usr/bin/ + CGO_ENABLED=0 GOOS=linux go build -mod vendor -ldflags="-s -w" -o ./pkg/blobfuse-proxy/debpackage/usr/bin/blobfuse-proxy ./pkg/blobfuse-proxy + dpkg-deb --build pkg/blobfuse-proxy/debpackage .PHONY: blobfuse-proxy-container blobfuse-proxy-container: diff --git a/pkg/blobfuse-proxy/debpackage/DEBIAN/control b/pkg/blobfuse-proxy/debpackage/DEBIAN/control index 46f0cb31a..8d0142775 100644 --- a/pkg/blobfuse-proxy/debpackage/DEBIAN/control +++ b/pkg/blobfuse-proxy/debpackage/DEBIAN/control @@ -1,7 +1,7 @@ Package: blobfuse-proxy -Version: 0.1.0 +Version: 0.1.1 Section: base Priority: optional Architecture: all Maintainer: Blob CSI driver maintainers -Description: runs blobfuse as a proxy +Description: blobfuse proxy