feat: first build of ProxLB
Build / Build on AlmaLinux 8 (pull_request) Failing after 1m48s

- version 1.0.2
- setup gitea actions workflows
This commit is contained in:
2024-09-01 01:02:34 +10:00
parent 5b47fd7869
commit 38da6718f8
4 changed files with 149 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
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 groupinstall -y 'Development Tools'
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$
+37
View File
@@ -0,0 +1,37 @@
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 groupinstall -y 'Development Tools'
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