From 76f3841da61b42314e1750b3005c40c24dafeae5 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Wed, 17 Nov 2021 20:16:03 -0800 Subject: [PATCH] pass secrets --- .github/actions/smoke-tests/action.yaml | 10 ++++++++-- .github/workflows/ci.yml | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/actions/smoke-tests/action.yaml b/.github/actions/smoke-tests/action.yaml index 0144d44cbe..75e15732d9 100644 --- a/.github/actions/smoke-tests/action.yaml +++ b/.github/actions/smoke-tests/action.yaml @@ -17,6 +17,12 @@ inputs: marker: description: Marker to use required: false + nginx-key: + description: Nginx key to use + required: false + nginx-crt: + description: Nginx cert to use + required: false outputs: test-results-name: @@ -48,8 +54,8 @@ runs: pull: true build-args: BUILD_OS=${{ inputs.image }} secrets: | - "nginx-repo.crt=${{ secrets.NGINX_CRT }}" - "nginx-repo.key=${{ secrets.NGINX_KEY }}" + "nginx-repo.crt=${{ inputs.nginx-crt }}" + "nginx-repo.key=${{ inputs.nginx-key }}" - name: Build Test-Runner Container uses: docker/build-push-action@v2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b599218c9..8884a9d4bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,6 +175,8 @@ jobs: image: ${{ matrix.images.image != '' && matrix.images.image || 'debian' }} marker: ${{ matrix.images.marker != '' && matrix.images.marker || '' }} k8s-version: ${{ matrix.k8s != '' && matrix.k8s || env.K8S_VERSION }} + nginx-crt: ${{ secrets.NGINX_CRT }} + nginx-key: ${{ secrets.NGINX_KEY }} - name: Upload Test Results uses: actions/upload-artifact@v2 with: