Skip to content

Updated to haproxy 3.0.6, aws-lc v1.38.0 #64

Updated to haproxy 3.0.6, aws-lc v1.38.0

Updated to haproxy 3.0.6, aws-lc v1.38.0 #64

Workflow file for this run

name: Build container(s) & Upload Artifacts
on:
push:
tags:
- '*'
jobs:
build-linux-containers:
runs-on: ubuntu-latest
name: Build Linux Containers
if: github.event_name == 'push'
strategy:
matrix:
library:
- libressl
- openssl
- wolfssl
- aws-lc
steps:
- name: Checkout from GitHub
uses: actions/checkout@v4
- name: Setup qemu
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Determine Image Version
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# when the branch is main, replace main with latest
[ "$VERSION" == "main" ] && VERSION=latest
echo "VERSION=${VERSION}-${{ matrix.library }}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
build-args: SSL_LIBRARY=${{ matrix.library }}
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:${{ matrix.library }},ghcr.io/${{ github.repository }}:${{ env.VERSION }}
- name: Extract docker build artifacts
shell: bash
run: |
./scripts/extract-artifacts.sh ghcr.io/${{ github.repository }} ${{ env.VERSION }} ${{ matrix.library }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: haproxy-${{ matrix.library }}
path: |
dist/haproxy-http3-${{ matrix.library }}-linux-amd64.tar.xz
dist/haproxy-http3-${{ matrix.library }}-linux-arm64.tar.xz
dist/version.txt
retention-days: 1
release:
needs:
- build-linux-containers
runs-on: ubuntu-latest
name: Create Release
steps:
- name: Checkout from GitHub
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: haproxy-*
- name: Release Text
shell: bash
run: |
platforms=("linux-amd64" "linux-arm64")
libraries=("aws-lc" "libressl" "openssl" "wolfssl")
git log -1 --no-merges --pretty=%B > ./release.txt
echo "#### Versions:" >> ./release.txt
for library in ${libraries[@]}; do
VERSION=$(cat ./haproxy-${library}/version.txt | awk '{ print " " $0 }')
echo " - haproxy-${library}" >> ./release.txt
echo " <details>" >> ./release.txt
echo " <summary>Version information</summary>" >> ./release.txt
echo "" >> ./release.txt
echo "${VERSION}" >> ./release.txt
echo " </details>" >> ./release.txt
done
echo "#### SHA256 Checksums:" >> ./release.txt
for library in ${libraries[@]}; do
for platform in ${platforms[@]}; do
echo " haproxy-${library}-${platform}.tar.xz: $(sha256sum ./haproxy-${library}/haproxy-http3-${library}-${platform}.tar.xz | cut -d ' ' -f 1)" >> ./release.txt
done
echo "" >> ./release.txt
done
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: ./release.txt
files: |
./haproxy-aws-lc/haproxy-http3-aws-lc-linux-amd64.tar.xz
./haproxy-aws-lc/haproxy-http3-aws-lc-linux-arm64.tar.xz
./haproxy-libressl/haproxy-http3-libressl-linux-amd64.tar.xz
./haproxy-libressl/haproxy-http3-libressl-linux-arm64.tar.xz
./haproxy-openssl/haproxy-http3-openssl-linux-amd64.tar.xz
./haproxy-openssl/haproxy-http3-openssl-linux-arm64.tar.xz
./haproxy-wolfssl/haproxy-http3-wolfssl-linux-amd64.tar.xz
./haproxy-wolfssl/haproxy-http3-wolfssl-linux-arm64.tar.xz
- name: Remove old packages
uses: actions/delete-package-versions@v5
with:
package-name: 'haproxy-http3'
package-type: 'container'
min-versions-to-keep: 10