From 30f94a5828ec471d7e45285026c5887c01d7ee66 Mon Sep 17 00:00:00 2001 From: Matias <83959431+mativm02@users.noreply.github.com> Date: Mon, 20 May 2024 13:00:05 -0300 Subject: [PATCH] refactor: Update build tag logic in release workflow to include boringcrypto --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64b9f19a0..3c64b8733 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -534,6 +534,9 @@ jobs: strategy: fail-fast: false matrix: + arch: + - amd64 + - arm64 distro: - amazonlinux:2023 - registry.access.redhat.com/ubi8/ubi @@ -547,11 +550,13 @@ jobs: - uses: actions/download-artifact@v4 with: name: rpm + - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 - name: generate dockerfile run: | echo 'FROM ${{ matrix.distro }} - COPY tyk-pump*.x86_64.rpm /tyk-pump.rpm + ARG TARGETARCH + COPY tyk-pump*_${TARGETARCH}.rpm /tyk-pump.rpm RUN command -v curl || yum install -y curl RUN command -v useradd || yum install -y shadow-utils RUN curl -fsSL https://packagecloud.io/install/repositories/tyk/tyk-pump/script.rpm.sh | bash && yum install -y tyk-pump-1.6.0-1 @@ -563,6 +568,7 @@ jobs: uses: docker/build-push-action@v5 with: context: "." + platforms: linux/${{ matrix.arch }} file: Dockerfile push: false