release: rollback Ubuntu to 18.04 (except for riscv64)
Partially revert 0e56e4f9ff
Rollback the build environment from Ubuntu 22.04 to 18.04, except for riscv64 that isn't supported by Ubuntu 18.04.
Fix issue 7255 (`1.6.7 can't be run on Ubuntu LTS 20.04 (GLIBC_2.34 not found)`)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@@ -53,18 +53,24 @@ jobs:
|
||||
|
||||
build:
|
||||
name: Build Release Binaries
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-${{ matrix.ubuntu }}
|
||||
needs: [check]
|
||||
timeout-minutes: 10
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04]
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/ppc64le
|
||||
- linux/riscv64
|
||||
- windows/amd64
|
||||
include:
|
||||
# Choose an old release of Ubuntu to avoid glibc issue https://github.com/containerd/containerd/issues/7255
|
||||
- ubuntu: 18.04
|
||||
platform: linux/amd64
|
||||
- ubuntu: 18.04
|
||||
platform: linux/arm64
|
||||
- ubuntu: 18.04
|
||||
platform: linux/ppc64le
|
||||
# riscv64 isn't supported by Ubuntu 18.04
|
||||
- ubuntu: 22.04
|
||||
platform: linux/riscv64
|
||||
- ubuntu: 18.04
|
||||
platform: windows/amd64
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
@@ -73,7 +79,7 @@ jobs:
|
||||
- name: Set env
|
||||
shell: bash
|
||||
env:
|
||||
MOS: ${{ matrix.os }}
|
||||
MOS: ubuntu-${{ matrix.ubuntu }}
|
||||
run: |
|
||||
releasever=${{ github.ref }}
|
||||
releasever="${releasever#refs/tags/}"
|
||||
@@ -105,7 +111,7 @@ jobs:
|
||||
export PREFIX_LEN=12
|
||||
BUILD_ARGS="--build-arg GATEWAY --build-arg PREFIX_LEN"
|
||||
fi
|
||||
docker buildx build ${cache} --build-arg RELEASE_VER --build-arg GO_VERSION ${BUILD_ARGS} -f .github/workflows/release/Dockerfile --platform=${PLATFORM} -o releases/ .
|
||||
docker buildx build ${cache} --build-arg RELEASE_VER --build-arg UBUNTU_VERSION=${{ matrix.ubuntu }} --build-arg GO_VERSION ${BUILD_ARGS} -f .github/workflows/release/Dockerfile --platform=${PLATFORM} -o releases/ .
|
||||
echo PLATFORM_CLEAN=${PLATFORM/\//-} >> $GITHUB_ENV
|
||||
|
||||
# Remove symlinks since we don't want these in the release Artifacts
|
||||
|
||||
Reference in New Issue
Block a user