e2e #7
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
# 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} |