From 07225c8a1a354f72d4200c5187cf950d3600eafc Mon Sep 17 00:00:00 2001 From: Nikolay Tkachenko Date: Fri, 20 Dec 2024 15:24:49 +0200 Subject: [PATCH] Release/v0.8.6 (#122) * Update github workflows * Update dependencies * Bump up apifw version to v0.8.6 --- .github/workflows/binaries.yml | 11 +++++++---- Makefile | 2 +- cmd/api-firewall/tests/wallarm_api2_update.db | Bin 98304 -> 98304 bytes .../OWASP_CoreRuleSet/docker-compose.yml | 2 +- .../docker-compose-api-mode.yml | 2 +- .../docker-compose-graphql-mode.yml | 2 +- demo/docker-compose/docker-compose.yml | 2 +- docs/release-notes.md | 5 +++++ go.mod | 6 +++--- go.sum | 12 ++++++------ helm/api-firewall/Chart.yaml | 2 +- 11 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index a10a4da..c21247b 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -52,6 +52,7 @@ jobs: - draft-release env: X_GO_DISTRIBUTION: "https://go.dev/dl/go1.22.10.linux-amd64.tar.gz" + APIFIREWALL_NAMESPACE: "github.com/wallarm/api-firewall" strategy: matrix: include: @@ -74,7 +75,6 @@ jobs: options: > --volume ${{ github.workspace }}:/build --workdir /build - -e APIFIREWALL_NAMESPACE=github.com/wallarm/api-firewall run: |- set -e @@ -106,7 +106,7 @@ jobs: mkdir -p /tmp/api-firewall-${{ matrix.artifact }} && \ go mod download -x && \ go build \ - -ldflags="-X main.build=${{ env.X_TAG }} -X ${APIFIREWALL_NAMESPACE}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \ + -ldflags="-X ${{ env.APIFIREWALL_NAMESPACE }}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \ -o /tmp/api-firewall-${{ matrix.artifact }}/api-firewall \ -buildvcs=false ./cmd/api-firewall && \ /tmp/api-firewall-${{ matrix.artifact }}/api-firewall -v && \ @@ -163,6 +163,7 @@ jobs: - draft-release env: X_GO_VERSION: "1.22.10" + APIFIREWALL_NAMESPACE: "github.com/wallarm/api-firewall" strategy: matrix: include: @@ -209,7 +210,7 @@ jobs: mkdir -p /tmp/api-firewall-${{ matrix.artifact }} && \ go mod download -x && \ go build \ - -ldflags="-X main.build=${{ env.X_TAG }} -X ${APIFIREWALL_NAMESPACE}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \ + -ldflags="-X ${{ env.APIFIREWALL_NAMESPACE }}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \ -o /tmp/api-firewall-${{ matrix.artifact }}/api-firewall \ -buildvcs=false ./cmd/api-firewall && \ /tmp/api-firewall-${{ matrix.artifact }}/api-firewall -v && \ @@ -264,6 +265,8 @@ jobs: runs-on: ubuntu-latest needs: - draft-release + env: + APIFIREWALL_NAMESPACE: "github.com/wallarm/api-firewall" strategy: matrix: include: @@ -347,7 +350,7 @@ jobs: mkdir -p /tmp/api-firewall-${{ matrix.artifact }} && \ go mod download -x && \ go build \ - -ldflags="-X main.build=${{ env.X_TAG }} -X ${APIFIREWALL_NAMESPACE}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \ + -ldflags="-X ${{ env.APIFIREWALL_NAMESPACE }}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \ -o /tmp/api-firewall-${{ matrix.artifact }}/api-firewall \ -buildvcs=false ./cmd/api-firewall && \ /tmp/api-firewall-${{ matrix.artifact }}/api-firewall -v && \ diff --git a/Makefile b/Makefile index 2884ea7..d605187 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := 0.8.5 +VERSION := 0.8.6 NAMESPACE := github.com/wallarm/api-firewall .DEFAULT_GOAL := build diff --git a/cmd/api-firewall/tests/wallarm_api2_update.db b/cmd/api-firewall/tests/wallarm_api2_update.db index 68ca66bdf3eb568f3da025e317faa9da32d1907e..000edd414c064faed39630b7ec7a1f0517462dea 100644 GIT binary patch delta 34 qcmZo@U~6b#n;^~DK2gS*v3+Aglq_S!=H0R`LX0<>43-%%1^@uYM++