Compare commits

..

2 Commits

Author SHA1 Message Date
unkinben 4122aac9a9 Merge pull request 'Change to gitea actions' (#4) from neoloc/gitea_actions into master
Build and Upload RPMs / Build on AlmaLinux 8 (push) Successful in 3m42s
Reviewed-on: https://git.query.consul/unkin/rpmbuild-gonic/pulls/4
2024-09-07 21:43:06 +10:00
unkinben 261fe3eae4 Change to gitea actions
Build RPMs / Build on AlmaLinux 8 (pull_request) Successful in 3m49s
- remove .drone.yml
- create .gitea/workflows/deploy.yaml and build.yaml
- install node in default container
- updated makefile
2024-09-07 21:35:02 +10:00
3 changed files with 4 additions and 38 deletions
+2 -21
View File
@@ -30,25 +30,6 @@ jobs:
- name: Build project
run: make build
upload:
name: Upload RPMs
runs-on: almalinux-8
needs: build
container:
image: git.query.consul/unkin/almalinux8:latest
steps:
- name: Install nodejs:20
- name: Find built packages
run: |
dnf module enable -y nodejs:20
dnf install -y nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in src/rpmbuild/RPMS/*/*.rpm; do
ls -lh $rpm
done
find /workspace | grep -E \.rpm$
+1 -16
View File
@@ -32,25 +32,10 @@ jobs:
- name: Build project
run: make build
upload:
name: Upload RPMs
runs-on: almalinux-8
needs: build
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: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in src/rpmbuild/RPMS/*/*.rpm; do
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
+1 -1
View File
@@ -1,6 +1,6 @@
.PHONY: all prep download build clean
RPMBUILD := /drone/src/rpmbuild
RPMBUILD := /workspace/src/rpmbuild
SOURCES := $(RPMBUILD)/SOURCES
SPECS := $(RPMBUILD)/SPECS
SPECFILE := gonic.spec