Compare commits

..

1 Commits

Author SHA1 Message Date
104345fa17 feat: first build of ProxLB
Some checks failed
Build / Build on AlmaLinux 8 (pull_request) Failing after 35s
- version 1.0.2
- setup gitea actions workflows
2024-09-07 21:51:15 +10:00
3 changed files with 69 additions and 3 deletions

View File

@ -0,0 +1,30 @@
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

@ -0,0 +1,36 @@
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=build
PACKAGE_DIR=packages
REPO_DIR=ProxLB
BUILD_DIR=/workspace/build
PACKAGE_DIR=workspace/packages
REPO_DIR=/workspace/ProxLB
.PHONY: all clean download prepare build package