generated from unkin/rpmbuild-template
Compare commits
1 Commits
35dd4d6130
...
104345fa17
| Author | SHA1 | Date | |
|---|---|---|---|
| 104345fa17 |
30
.gitea/workflows/build.yaml
Normal file
30
.gitea/workflows/build.yaml
Normal 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$
|
||||||
36
.gitea/workflows/deploy.yaml
Normal file
36
.gitea/workflows/deploy.yaml
Normal 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
|
||||||
6
Makefile
6
Makefile
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
VERSION=1.0.2
|
VERSION=1.0.2
|
||||||
REPO_URL=https://github.com/gyptazy/ProxLB.git
|
REPO_URL=https://github.com/gyptazy/ProxLB.git
|
||||||
BUILD_DIR=build
|
BUILD_DIR=/workspace/build
|
||||||
PACKAGE_DIR=packages
|
PACKAGE_DIR=workspace/packages
|
||||||
REPO_DIR=ProxLB
|
REPO_DIR=/workspace/ProxLB
|
||||||
|
|
||||||
.PHONY: all clean download prepare build package
|
.PHONY: all clean download prepare build package
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user