Skip to content

E2E Nightly

E2E Nightly #1113

Workflow file for this run

---
name: E2E Nightly
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run tests from. Defaults to redhat-3.9'
required: false
tag:
description: 'quay-operator-index tag. Defaults to 3.9-unstable'
required: false
schedule:
- cron: '30 5 * * *'
jobs:
deploy:
name: Deploy the operator
runs-on: 'ubuntu-latest'
env:
BRANCH: ${{ github.event.inputs.branch || 'redhat-3.9' }}
TAG: ${{ github.event.inputs.tag || '3.9-unstable' }}
CATALOG_PATH: ./bundle/quay-operator.catalogsource.yaml
OG_PATH: ./bundle/quay-operator.operatorgroup.yaml
SUBSCRIPTION_PATH: ./bundle/quay-operator.subscription.yaml
QUAY_SAMPLE_PATH: ./config/samples/managed.quayregistry.yaml
OPERATOR_PKG_NAME: quay-operator-test
NAMESPACE: quay-operator-e2e-nightly
WAIT_TIMEOUT: 10m
KUBECONFIG: ${{ github.workspace }}/kubeconfig
steps:
- name: check out the repo
uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH }}
- name: install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: install yq
env:
VERSION: v4.14.2
BINARY: yq_linux_amd64
run: |
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/local/bin/yq
chmod +x /usr/local/bin/yq
- name: setup kubeconfig
run: |
printf "${{ secrets.KUBE_CONFIG }}" | base64 --decode > "${KUBECONFIG}"
- name: deploy
env:
CATALOG_IMAGE: quay.io/projectquay/quay-operator-index:${{ env.TAG }}
run: ./hack/deploy.sh
- name: E2E Tests
env:
KUBECONFIG: ${{ github.workspace }}/kubeconfig
run: make test-e2e
- name: teardown deployment
if: always()
run: ./hack/teardown.sh
- name: Notify slack
if: ${{ always() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: team-quay-bots
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: "${{ github.workflow }}: ${{ job.status }}"
SLACK_MESSAGE: |
* **Repo**: ${{ github.repository }}
* **Workflow**: ${{ github.workflow }}
* **Result**: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}