e2e-noscience #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "e2e: noscience, self-hosted" | |
on: | |
repository_dispatch: | |
types: [e2e-noscience] | |
jobs: | |
e2e-science: | |
runs-on: ubuntu-latest | |
steps: | |
- name: build | |
run: | | |
image="${{ github.event.client_payload.image }}" | |
if [ "${{ github.event.client_payload.build }}" == "true" ]; then | |
echo "build success for image $image" | |
else | |
echo "build failed for image $image" | |
exit 1 | |
fi | |
- name: e2e | |
run: | | |
cluster="${{ github.event.client_payload.cluster }}" | |
if [ "${{ github.event.client_payload.e2e }}" == "true" ]; then | |
echo "Succeed to run e2e tests on cluster $cluster" | |
else | |
echo "Failed to run e2e tests on cluster $cluster" | |
exit 1 | |
fi | |
- name: push | |
run: | | |
image="${{ github.event.client_payload.image }}" | |
if [ "${{ github.event.client_payload.push }}" == "true" ]; then | |
echo "Succeed in pushing image $image" | |
else | |
echo "Failed to push image $image" | |
exit 1 | |
fi |