Skip to content

Commit

Permalink
pass secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Nov 22, 2021
1 parent f84f23b commit 76f3841
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/smoke-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 76f3841

Please sign in to comment.