2 Commits

Author SHA1 Message Date
benvin ec9f7d410f Merge pull request 'feat: add zip packaging target and woodpecker release pipeline' (#5) from benvin/makefile-ci-upload into main
ci/woodpecker/tag/release Pipeline failed
Reviewed-on: #5
2026-06-23 00:21:30 +10:00
unkinben 03b3344d8f feat: add zip packaging target and woodpecker release pipeline
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
2026-06-23 00:18:06 +10:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ steps:
- name: package - name: package
image: git.unkin.net/unkin/almalinux9-gobuilder:20260606 image: git.unkin.net/unkin/almalinux9-gobuilder:20260606
commands: commands:
- apt-get update && apt-get install -y zip
- make package VERSION=${CI_COMMIT_TAG} - make package VERSION=${CI_COMMIT_TAG}
- name: upload - name: upload
+1 -1
View File
@@ -33,7 +33,7 @@ fmt: check-go
package: build package: build
cp $(BINARY) $(BINARY)_v$(INSTALL_VERSION) cp $(BINARY) $(BINARY)_v$(INSTALL_VERSION)
python3 -c "import zipfile,sys; z=zipfile.ZipFile(sys.argv[1],'w',zipfile.ZIP_DEFLATED); z.write(sys.argv[2]); z.close()" $(ZIP) $(BINARY)_v$(INSTALL_VERSION) zip $(ZIP) $(BINARY)_v$(INSTALL_VERSION)
rm $(BINARY)_v$(INSTALL_VERSION) rm $(BINARY)_v$(INSTALL_VERSION)
clean: clean: