generated from unkin/rpmbuild-template
Compare commits
1 Commits
b91d0f57c8
...
104345fa17
| Author | SHA1 | Date | |
|---|---|---|---|
| 104345fa17 |
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: almalinux8
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: git.query.consul/unkin/almalinux8:latest
|
||||||
|
commands:
|
||||||
|
# Install the required packages using custom repositories
|
||||||
|
- dnf install -y rpm cmake git make python3-yaml
|
||||||
|
|
||||||
|
# Run the `make` command
|
||||||
|
- make package
|
||||||
|
|
||||||
|
- name: upload
|
||||||
|
image: git.query.consul/unkin/almalinux8:latest
|
||||||
|
environment:
|
||||||
|
GITEA_PASSWORD:
|
||||||
|
from_secret: gitea_password
|
||||||
|
commands:
|
||||||
|
- >
|
||||||
|
for rpm in /drone/src/packages/*.rpm; do
|
||||||
|
curl --user droneci:$GITEA_PASSWORD --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
|
||||||
|
done
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
2
Makefile
2
Makefile
@ -15,7 +15,7 @@ all: download prepare build package
|
|||||||
download:
|
download:
|
||||||
@if [ ! -d "$(REPO_DIR)" ]; then \
|
@if [ ! -d "$(REPO_DIR)" ]; then \
|
||||||
echo "Cloning repository..."; \
|
echo "Cloning repository..."; \
|
||||||
git clone $(REPO_URL) -C $(REPO_DIR); \
|
git clone $(REPO_URL); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepare directories
|
# Prepare directories
|
||||||
|
|||||||
Reference in New Issue
Block a user