mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
[no-relnote] Run e2e tests as reusable workflow
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
This commit is contained in:
24
.github/workflows/e2e.yaml
vendored
24
.github/workflows/e2e.yaml
vendored
@@ -15,19 +15,25 @@
|
||||
name: End-to-end Tests
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [image]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- "pull-request/[0-9]+"
|
||||
- main
|
||||
- release-*
|
||||
workflow_call:
|
||||
inputs: {}
|
||||
secrets:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
required: true
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
required: true
|
||||
AWS_SSH_KEY:
|
||||
required: true
|
||||
E2E_SSH_USER:
|
||||
required: true
|
||||
SLACK_BOT_TOKEN:
|
||||
required: true
|
||||
SLACK_CHANNEL_ID:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
e2e-tests:
|
||||
runs-on: linux-amd64-cpu4
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
8
.github/workflows/image.yaml
vendored
8
.github/workflows/image.yaml
vendored
@@ -94,7 +94,7 @@ jobs:
|
||||
if [[ "${{ matrix.ispr }}" == "true" ]]; then
|
||||
BUILD_MULTI_ARCH_IMAGES="false"
|
||||
fi
|
||||
echo "PUSH_ON_BUILD=\"true\"" >> $GITHUB_ENV
|
||||
echo "PUSH_ON_BUILD=true" >> $GITHUB_ENV
|
||||
echo "BUILD_MULTI_ARCH_IMAGES=${BUILD_MULTI_ARCH_IMAGES}" >> $GITHUB_ENV
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
@@ -122,3 +122,9 @@ jobs:
|
||||
run: |
|
||||
echo "${VERSION}"
|
||||
make -f deployments/container/Makefile build-${{ matrix.dist }}
|
||||
|
||||
test:
|
||||
name: End-to-end Tests
|
||||
uses: ./.github/workflows/e2e.yaml
|
||||
secrets: inherit
|
||||
needs: image
|
||||
|
||||
Reference in New Issue
Block a user