File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed
Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change 5858 paths :
5959 - << parameters.local-cache-path >>
6060 key : << parameters.local-cache-prefix >>-{{ arch }}-{{ .Branch }}-{{ checksum "<< parameters.local-cache-path >>/index.json" }}
61+ - run :
62+ name : Package build output as Debian package-debian
63+ command : |
64+ echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
65+ sudo apt-get update
66+ sudo apt-get install -y nfpm
67+ export ARCH=<< parameters.architecture >><< parameters.variant >>
68+ # Override GOARCH so armv7 builds use GOARCH=arm7 instead of GOARCH=armv7
69+ if [ "$ARCH" = "armv7" ]; then
70+ GOARCH="arm7"
71+ else
72+ GOARCH="$ARCH"
73+ fi
74+ export GOARCH
75+ mkdir -p debian
76+ mkdir -p dist/localproxy-linux-${ARCH}
77+ tar -xvf localproxy-linux-<< parameters.architecture >><< parameters.variant >>.tar -C debian/localproxy-linux-${ARCH}
78+ nfpm pkg --packager deb --target debian/
6179 - store_artifacts :
6280 path : localproxy-linux-<< parameters.architecture >><< parameters.variant >>.tar.xz
81+ - store_artifacts :
82+ path : debian
6383 - persist_to_workspace :
6484 root : .
6585 paths :
@@ -186,12 +206,12 @@ workflows:
186206 # TODO: macOS build is not working yet
187207 # - build-mac
188208
189- - package-debian :
190- context : github
191- requires :
192- - build-linux-amd64
193- - build-linux-arm64
194- - build-linux-armv7
209+ # - package-debian:
210+ # context: github
211+ # requires:
212+ # - build-linux-amd64
213+ # - build-linux-arm64
214+ # - build-linux-armv7
195215
196216 # - create-github-release:
197217 # context: github
You can’t perform that action at this time.
0 commit comments