Skip to content

Commit 859f8c8

Browse files
authored
Merge pull request #367 from northtyphoon/main
build: add release package for azurelinux3.0
2 parents 06e5f0d + a2a0875 commit 859f8c8

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
images: [ubuntu_18.04, ubuntu_20.04, ubuntu_22.04, ubuntu_24.04, centos_7, centos_8, mcr.microsoft.com/cbl-mariner/base/core_2.0]
17+
images: [ubuntu_18.04, ubuntu_20.04, ubuntu_22.04, ubuntu_24.04, centos_7, centos_8, mcr.microsoft.com/cbl-mariner/base/core_2.0, mcr.microsoft.com/azurelinux/base/core_3.0]
1818
platforms: [linux/amd64, linux/arm64]
1919
exclude:
2020
- images: centos_7
@@ -66,6 +66,8 @@ jobs:
6666
OS=${BUILD_IMAGE}
6767
if [[ "${BUILD_IMAGE}" =~ "mcr.microsoft.com/cbl-mariner/base/core:" ]]; then
6868
OS="mariner:${BUILD_IMAGE#mcr.microsoft.com/cbl-mariner/base/core:}"
69+
elif [[ "${BUILD_IMAGE}" =~ "mcr.microsoft.com/azurelinux/base/core:" ]]; then
70+
OS="azurelinux:${BUILD_IMAGE#mcr.microsoft.com/azurelinux/base/core:}"
6971
fi
7072
echo "BUILD_IMAGE=${BUILD_IMAGE}"
7173
echo "OS=${OS}"
@@ -80,6 +82,8 @@ jobs:
8082
rm -f releases/overlaybd-*.deb
8183
elif [[ "${OS}" =~ "mariner" ]]; then
8284
rm -f releases/overlaybd-*.deb
85+
elif [[ "${OS}" =~ "azurelinux" ]]; then
86+
rm -f releases/overlaybd-*.deb
8387
fi
8488
ls -l releases/
8589
env:

.github/workflows/release/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ elif [[ ${OS} =~ "mariner" ]]; then
7979
yum install -y libaio-devel libcurl-devel openssl-devel libnl3-devel e2fsprogs-devel glibc-devel libzstd-devel binutils ca-certificates-microsoft build-essential
8080
yum install -y rpm-build make git wget sudo tar gcc gcc-c++ autoconf automake libtool
8181

82+
DISTRO=${OS/:/.}
83+
PACKAGE_RELEASE="-DPACKAGE_RELEASE=${RELEASE_NO}.${DISTRO}"
84+
elif [[ ${OS} =~ "azurelinux" ]]; then
85+
tdnf update -y
86+
tdnf install -y libaio-devel libcurl-devel openssl-devel libnl3-devel e2fsprogs-devel glibc-devel libzstd-devel binutils ca-certificates-microsoft build-essential
87+
tdnf install -y rpm-build make git wget sudo tar gcc gcc-c++ autoconf automake libtool
88+
8289
DISTRO=${OS/:/.}
8390
PACKAGE_RELEASE="-DPACKAGE_RELEASE=${RELEASE_NO}.${DISTRO}"
8491
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ To build overlaybd from source code, the following dependencies are required:
6161
* CentOS 7/Fedora: `sudo yum install libaio-devel libcurl-devel openssl-devel libnl3-devel libzstd-static e2fsprogs-devel`
6262
* CentOS 8: `sudo yum install libaio-devel libcurl-devel openssl-devel libnl3-devel libzstd-devel e2fsprogs-devel`
6363
* Debian/Ubuntu: `sudo apt install libcurl4-openssl-dev libssl-dev libaio-dev libnl-3-dev libnl-genl-3-dev libgflags-dev libzstd-dev libext2fs-dev`
64-
* Mariner: `sudo yum install libaio-devel libcurl-devel openssl-devel libnl3-devel e2fsprogs-devel glibc-devel libzstd-devel binutils ca-certificates-microsoft build-essential`
64+
* Mariner/AzureLinux: `sudo yum install libaio-devel libcurl-devel openssl-devel libnl3-devel e2fsprogs-devel glibc-devel libzstd-devel binutils ca-certificates-microsoft build-essential`
6565

6666
#### Build
6767

0 commit comments

Comments
 (0)