Skip to content

Commit

Permalink
Add NGINX version to ubi image building (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarams87 authored May 12, 2021
1 parent efcc695 commit 126914b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 126914b

Please sign in to comment.