This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: Build and Publish RPM
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: "ubuntu-latest-intranet"
|
||||
container:
|
||||
image: gitea.psi.ch/images/rhel9-developer-gitea-actions
|
||||
steps:
|
||||
- name: Checkout LFS objects
|
||||
run: git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git .
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# lfs: true
|
||||
|
||||
- name: Build RPM
|
||||
run: |
|
||||
spectool -g -R micromamba.spec
|
||||
rpmbuild -ba micromamba.spec
|
||||
|
||||
- name: Publish RPM package
|
||||
run: |
|
||||
echo curl -X PUT \
|
||||
--user "${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
|
||||
--upload-file /data/RPMS/x86_64/*.rpm \
|
||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"
|
||||
curl -X PUT \
|
||||
--user "${{ secrets.PACKAGE_DEPLOY_TOKEN }}" \
|
||||
--upload-file /data/RPMS/x86_64/*.rpm \
|
||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/rpm/upload"
|
||||
@@ -0,0 +1,3 @@
|
||||
# Overview
|
||||
|
||||
This repository packages micromamba - https://github.com/mamba-org/micromamba-releases - as an RPM
|
||||
@@ -0,0 +1,38 @@
|
||||
%define debug_package %{nil}
|
||||
%define install_dir /opt/micromamba
|
||||
|
||||
|
||||
|
||||
Name: micromamba
|
||||
Version: 2.5.0
|
||||
%define minor_ver 2
|
||||
Release: 0%{?dist}
|
||||
Summary: The micromamba package manager
|
||||
License: MIT
|
||||
URL: https://github.com/mamba-org/micromamba-releases
|
||||
Source0: https://github.com/mamba-org/micromamba-releases/releases/download/%{version}-%{minor_ver}/micromamba-linux-64
|
||||
|
||||
|
||||
BuildRequires: bash
|
||||
Requires: bash
|
||||
|
||||
%description
|
||||
Micromamba is a community-led minimal installer for Conda and Mamba,
|
||||
pre-configured to use the conda-forge channel by default.
|
||||
|
||||
%prep
|
||||
# No source to unpack, we use the shell installer directly
|
||||
|
||||
%build
|
||||
# Nothing to compile
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}%{install_dir}/bin
|
||||
|
||||
# Copy binary into buildroot
|
||||
cp %{SOURCE0} %{buildroot}%{install_dir}/bin
|
||||
|
||||
%files
|
||||
%{install_dir}
|
||||
|
||||
Reference in New Issue
Block a user