Updated haproxy to v3.0.0, aws-lc to v1.28.0 #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build container(s) & Upload Artifacts | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-container-and-deploy: | |
runs-on: ubuntu-latest | |
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@v3 | |
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 | |
id: extract_artifacts | |
run: | | |
./extract-artifacts.sh ghcr.io/${{ github.repository }} ${{ env.VERSION }} ${{ matrix.library }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
dist/haproxy-http3-${{ matrix.library }}-linux-amd64.tar.xz | |
dist/haproxy-http3-${{ matrix.library }}-linux-arm64.tar.xz |