-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding new e2e workflow for s390x * Update e2e-nightly-s390x.yaml * Update e2e-nightly-s390x.yaml * Update e2e-nightly-s390x.yaml * Update e2e-nightly-s390x.yaml * Update e2e-nightly-s390x.yaml Updated e2e with slack notification * Update e2e-nightly-s390x.yaml --------- Co-authored-by: root <[email protected]>
- Loading branch information
1 parent
8b97643
commit e9a8080
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
name: E2E Nightly s390x | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to run tests from. Defaults to redhat-3.10' | ||
required: false | ||
tag: | ||
description: 'quay-operator-index tag. Defaults to 3.10-unstable' | ||
required: false | ||
schedule: | ||
- cron: '30 6 * * *' | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy the operator | ||
runs-on: 'ubuntu-latest' | ||
env: | ||
BRANCH: ${{ github.event.inputs.branch || 'redhat-3.10' }} | ||
TAG: ${{ github.event.inputs.tag || '3.10-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.s390x_KUBE_CONFIG }}" > "${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 }} |