generated from unkin/rpmbuild-template
Compare commits
1 Commits
104345fa17
...
35dd4d6130
| Author | SHA1 | Date | |
|---|---|---|---|
| 35dd4d6130 |
@ -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$
|
||||
@ -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
|
||||
Reference in New Issue
Block a user