feat: setup deployment
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

- add drone.yml
- add makefile
- add spec file
- add vault intermediate/root ca files
This commit is contained in:
2024-08-25 22:53:29 +10:00
parent 3647610e58
commit c420903739
7 changed files with 169 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
.PHONY: all prepare build clean
RPMBUILD := /drone/src/rpmbuild
SPECFILE := internal-ca-certificates.spec
# Extract the version from the spec file
VERSION := $(shell grep "^Version:" $(SPECFILE) | awk '{print $$2}')
all: build
prepare:
mkdir -p $(RPMBUILD)/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
mkdir -p $(RPMBUILD)/SOURCES/certificates
cp -v certificates/*.crt $(RPMBUILD)/SOURCES/certificates/
build: prepare
rpmbuild -ba --define "_topdir $(RPMBUILD)" $(SPECFILE)
clean:
rm -rf $(RPMBUILD)