mirror of
https://github.com/outbackdingo/ucore.git
synced 2026-01-27 10:20:49 +00:00
chore: directly use github for zfs version (#23)
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -44,14 +44,13 @@ jobs:
|
||||
steps:
|
||||
# Use cURL to fetch the given URL, saving the response to `data.json`
|
||||
- name: Fetch zfs versions
|
||||
# Uses project_id from: https://release-monitoring.org/project/11706/
|
||||
run: curl "https://release-monitoring.org/api/v2/versions/?project_id=11706" -o data.json
|
||||
run: curl "https://api.github.com/repos/openzfs/zfs/releases" -o data.json
|
||||
- name: Get latest zfs version
|
||||
id: latest
|
||||
run: echo "version=$(jq -r '.stable_versions[0]' data.json)" >> $GITHUB_OUTPUT
|
||||
run: echo "version=$(jq -r '.[0].name' data.json)" >> $GITHUB_OUTPUT
|
||||
- name: Get previous zfs version
|
||||
id: previous
|
||||
run: echo "version=$(jq -r '.stable_versions[1]' data.json)" >> $GITHUB_OUTPUT
|
||||
run: echo "version=$(jq -r '.[1].name' data.json)" >> $GITHUB_OUTPUT
|
||||
|
||||
build_zfs:
|
||||
name: Build ZFS
|
||||
|
||||
@@ -22,9 +22,9 @@ RUN dnf install -y jq dkms gcc make autoconf automake libtool rpm-build libtirpc
|
||||
python3 python3-devel python3-setuptools python3-cffi libffi-devel git ncompress libcurl-devel
|
||||
|
||||
WORKDIR /
|
||||
RUN curl -L -O https://github.com/openzfs/zfs/releases/download/zfs-${ZFS_VERSION}/zfs-${ZFS_VERSION}.tar.gz \
|
||||
&& tar xzf zfs-${ZFS_VERSION}.tar.gz \
|
||||
&& mv zfs-${ZFS_VERSION} /tmp/zfs
|
||||
RUN curl -L -O https://github.com/openzfs/zfs/releases/download/${ZFS_VERSION}/${ZFS_VERSION}.tar.gz \
|
||||
&& tar xzf ${ZFS_VERSION}.tar.gz \
|
||||
&& mv ${ZFS_VERSION} /tmp/zfs
|
||||
|
||||
WORKDIR /tmp/zfs
|
||||
# build
|
||||
|
||||
Reference in New Issue
Block a user