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

- 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 9520c96f90
7 changed files with 180 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
.PHONY: all prep download build clean
RPMBUILD := /drone/src/rpmbuild
SOURCES := $(RPMBUILD)/SOURCES
SPECS := $(RPMBUILD)/SPECS
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 $(BUILD_DIR)/etc/pki/ca-trust/source/anchors
cp -v certificates/*.crt $(BUILD_DIR)/etc/pki/ca-trust/source/anchors/
spec:
mkdir -p $(RPMBUILD_DIR)/SPECS
cp -v $(PACKAGE_NAME).spec $(RPMBUILD_DIR)/SPECS/
build: prepare spec
mkdir -p $(RPMBUILD_DIR)/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cp -r $(BUILD_DIR)/* $(RPMBUILD_DIR)/BUILD/
rpmbuild -bb --define "_topdir $(RPMBUILD_DIR)" $(RPMBUILD_DIR)/SPECS/$(PACKAGE_NAME).spec
clean:
rm -rf $(BUILD_DIR) $(RPMBUILD_DIR)