From 4030c3a40385baa7b8f145cd2c44e126b6e28610 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Thu, 14 Dec 2023 16:56:58 -0500 Subject: [PATCH] e2e-test Signed-off-by: Raghavendra Talur --- .github/workflows/e2e.yaml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/e2e.yaml diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml new file mode 100644 index 0000000000..c6cb93d2fa --- /dev/null +++ b/.github/workflows/e2e.yaml @@ -0,0 +1,46 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + +--- +# yamllint disable rule:line-length + +name: E2E + +# This workflow will run when developer push a topic branch to their +# fork in github, minimizing noise for maintainers. This +# workflow also runs on nightly basis at 12:00 AM (00:00 UTC) + +on: # yamllint disable-line rule:truthy + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +env: + # Values can be overriden by repository variables. + IMAGE_TAG_BASE: ${{ vars.IMAGE_TAG_BASE || 'quay.io/ramendr/ramen' }} + IMAGE_REPOSITORY: ${{ vars.IMAGE_REPOSITORY || 'ramendr' }} + IMAGE_NAME: ${{ vars.IMAGE_NAME || 'ramen' }} + OPERATOR_SUGGESTED_NAMESPACE: ${{ vars.OPERATOR_SUGGESTED_NAMESPACE || 'ramen-system' }} + # Constants + GO_VERSION: "1.19" + IMAGE_REGISTRY: "quay.io" + IMAGE_TAG: "ci" + DOCKERCMD: "podman" + DRIVER: "container" +defaults: + run: + shell: bash +jobs: + e2e-test: + name: e2e tests + runs-on: self-hosted + steps: + - name: Checkout source + uses: actions/checkout@v3 + + - name: Build image + run: make docker-build + + - name: Export image + run: ${{env.DOCKERCMD}} save -o /tmp/ramen-operator.tar ${IMAGE_TAG_BASE}-operator:${IMAGE_TAG} \ No newline at end of file