Compare commits

..

1 Commits

Author SHA1 Message Date
35dd4d6130 feat: first build of ProxLB
Some checks are pending
continuous-integration/drone/pr Build is pending
- version 1.0.2
2024-09-01 01:02:34 +10:00
3 changed files with 3 additions and 69 deletions

View File

@ -1,30 +0,0 @@
name: Build
on:
pull_request:
jobs:
build:
name: Build on AlmaLinux 8
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
steps:
- name: Install nodejs:20
run: |
dnf module enable -y nodejs:20
dnf install -y nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Install required packages
run: |
dnf install -y rpm cmake git make python3-yaml
- name: Build project
run: make build
- name: Find built packages
run: |
find /workspace | grep -E \.rpm$

View File

@ -1,36 +0,0 @@
name: Deploy
on:
push:
branches:
- master
jobs:
build:
name: Build on AlmaLinux 8
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
steps:
- name: Install nodejs:20
run: |
dnf module enable -y nodejs:20
dnf install -y nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Install required packages
run: |
dnf install -y rpm cmake git make python3-yaml
- name: Build project
run: make build
- name: Upload RPMs
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in /workspace/src/rpmbuild/RPMS/*/*.rpm; do
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
done

View File

@ -2,9 +2,9 @@
VERSION=1.0.2
REPO_URL=https://github.com/gyptazy/ProxLB.git
BUILD_DIR=/workspace/build
PACKAGE_DIR=workspace/packages
REPO_DIR=/workspace/ProxLB
BUILD_DIR=build
PACKAGE_DIR=packages
REPO_DIR=ProxLB
.PHONY: all clean download prepare build package