From 126914b5d3f59e7cf42d939a6dbc8961b32af76d Mon Sep 17 00:00:00 2001 From: Ciara Stacke <18287516+ciarams87@users.noreply.github.com> Date: Wed, 12 May 2021 13:33:43 +0100 Subject: [PATCH] Add NGINX version to ubi image building (#1592) --- .github/workflows/edge.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml index 8d3e77d82f..f929af29b9 100644 --- a/.github/workflows/edge.yml +++ b/.github/workflows/edge.yml @@ -101,6 +101,10 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 + - name: Output Variables + id: commit + run: | + echo "::set-output name=nginx_version::$(cat build/Dockerfile | grep -m1 "FROM nginx:" | cut -d":" -f2 | cut -d" " -f1)" - name: Fetch Cached Artifacts uses: actions/cache@v2.1.5 with: @@ -129,6 +133,7 @@ jobs: load: true build-args: | BUILD_OS=${{ matrix.image }} + NGINX_VERSION=${{ steps.commit.outputs.nginx_version }} - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: