diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 9b927669..50504288 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -1,6 +1,9 @@ name: Release k8s-netperf container image on: + pull_request: + paths: + - "containers/**" push: paths: - "containers/**" # Trigger only when Dockerfile changes in a pull request @@ -44,4 +47,4 @@ jobs: env: GO_VER: ${{ env.GO_VER }} QUAY_USER: ${{ secrets.QUAY_USER }} - QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} \ No newline at end of file + QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} diff --git a/containers/Containerfile b/containers/Containerfile index 26cee777..303b9305 100644 --- a/containers/Containerfile +++ b/containers/Containerfile @@ -1,4 +1,5 @@ # RHEL_VERSION defined in Makefile + ARG RHEL_VERSION FROM registry.access.redhat.com/${RHEL_VERSION}:latest