Skip to content

Commit

Permalink
aws linux 2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Jul 22, 2024
1 parent 4daded0 commit 9820690
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 13 deletions.
51 changes: 38 additions & 13 deletions .github/matrix-commitly.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,49 @@
# please see matrix-full.yml for meaning of each field
build-packages:
- label: ubuntu-22.04
os: ubuntu-22.04
package: deb
check-manifest-suite: ubuntu-22.04-amd64
# label: used to distinguish artifacts for later use
# image: docker image name if the build is running in side a container
# package: package type
# package-type: the nfpm packaging target, //:kong_{package} target; only used when package is rpm
# bazel-args: additional bazel build flags
# check-manifest-suite: the check manifest suite as defined in scripts/explain_manifest/config.py

# Amazon Linux
- label: amazonlinux-2
image: amazonlinux:2
package: rpm
package-type: aws2
check-manifest-suite: amazonlinux-2-amd64

build-images:
- label: ubuntu
base-image: ubuntu:22.04
package: deb
artifact-from: ubuntu-22.04
# Only build images for the latest version of each major release.

# label: used as compose docker image label ${github.sha}-${label}
# base-image: docker image to use as base
# package: package type
# artifact-from: label of build-packages to use
# artifact-from-alt: another label of build-packages to use for downloading package (to build multi-arch image)
# docker-platforms: comma separated list of docker buildx platforms to build for

# RHEL
- label: rhel
base-image: registry.access.redhat.com/ubi8
package: rpm
package-distro: el8
artifact-from: rhel-8

smoke-tests:
- label: ubuntu
- label: rhel

scan-vulnerabilities:
- label: ubuntu
- label: rhel

release-packages:
# Amazon Linux
- label: amazonlinux-2
package: rpm
artifact-from: amazonlinux-2
artifact-version: 2
artifact-type: amazonlinux
artifact: kong.aws2.amd64.rpm

release-images:
- label: ubuntu
package: deb
- label: rhel
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,26 @@ jobs:
apt-get update
apt-get install -y git tar gzip file sudo
- name: Install GLibc
if: matrix.label == 'amazonlinux-2'
run: |
yum groupinstall -y "Development Tools"
curl -o make-4.0.tar.gz http://ftp.gnu.org/gnu/make/make-4.0.tar.gz
tar -xzf make-4.0.tar.gz
cd make-4.0.tar.gz
./configure && make && make install
yum remove -y make
ln -s /usr/local/bin/make /bin/make
curl -o glibc-2.28.tar.gz https://ftp.gnu.org/gnu/libc/glibc-2.28.tar.gz
tar -xzf glibc-2.28.tar.gz
cd glibc-2.28
mkdir build
cd build
../configure --prefix=/opt/glibc-2.28
make
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.28/lib:$LD_LIBRARY_PATH
- name: Cache Git
id: cache-git
if: (matrix.package == 'rpm' || matrix.image == 'debian:10') && matrix.image != ''
Expand Down

0 comments on commit 9820690

Please sign in to comment.