This repository has been archived on 2025-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
rpmbuild-proxlb/.gitea/workflows/deploy.yaml
Ben Vincent 02f4e113a0
Some checks failed
Build / Build on AlmaLinux 8 (pull_request) Failing after 1m57s
feat: first build of ProxLB
- version 1.0.2
- setup gitea actions workflows
2024-09-07 22:44:57 +10:00

38 lines
950 B
YAML

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