Skip to content

[WIP]create deployments commands #588

[WIP]create deployments commands

[WIP]create deployments commands #588

Workflow file for this run

name: E2E
on:
pull_request:
branches:
- main
jobs:
create-cluster-capi:
name: Create cluster with Cluster API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create kind cluster
uses: helm/[email protected]
with:
install_only: true
- run: |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update
sudo apt-get install -y terraform
- run: |
GOBIN="$HOME"/bin make build-cli
chmod 755 plural.o
mv plural.o /usr/local/bin/plural
- run: hack/e2e/kind-install-for-capd.sh
- run: hack/e2e/setup-plural.sh
env:
CLI_E2E_CONF: ${{ secrets.CLI_E2E_CONF }}
CLI_E2E_IDENTITY_FILE: ${{ secrets.CLI_E2E_IDENTITY_FILE }}
CLI_E2E_KEY_FILE: ${{ secrets.CLI_E2E_KEY_FILE }}
CLI_E2E_PUBLIC_KEY: ${{ secrets.CLI_E2E_PUBLIC_KEY }}
CLI_E2E_PRIVATE_KEY: ${{ secrets.CLI_E2E_PRIVATE_KEY }}
CLI_E2E_SHARING_PRIVATE_KEY: ${{ secrets.CLI_E2E_SHARING_PRIVATE_KEY }}
CLI_E2E_SHARING_PUBLIC_KEY: ${{ secrets.CLI_E2E_SHARING_PUBLIC_KEY }}
USE_CLUSTER_API: true
- run: go test -v -race ./pkg/test/e2eclusterapi/... -tags="e2e"
- run: |
cd $HOME/test
plural destroy --force --all --commit=""
env:
PLURAL_DESTROY_CONFIRM: true
PLURAL_DESTROY_AFFIRM_UNINSTALL_APPS: true
PLURAL_DISABLE_MP_TABLE_VIEW: true
create-cluster:
if: false
name: Create cluster
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create kind cluster
uses: helm/[email protected]
with:
install_only: true
- run: |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update
sudo apt-get install -y terraform
- run: |
GOBIN="$HOME"/bin make build-cli
chmod 755 plural.o
mv plural.o /usr/local/bin/plural
- run: hack/e2e/setup-plural.sh
env:
CLI_E2E_CONF: ${{ secrets.CLI_E2E_CONF }}
CLI_E2E_IDENTITY_FILE: ${{ secrets.CLI_E2E_IDENTITY_FILE }}
CLI_E2E_KEY_FILE: ${{ secrets.CLI_E2E_KEY_FILE }}
CLI_E2E_PUBLIC_KEY: ${{ secrets.CLI_E2E_PUBLIC_KEY }}
CLI_E2E_PRIVATE_KEY: ${{ secrets.CLI_E2E_PRIVATE_KEY }}
CLI_E2E_SHARING_PRIVATE_KEY: ${{ secrets.CLI_E2E_SHARING_PRIVATE_KEY }}
CLI_E2E_SHARING_PUBLIC_KEY: ${{ secrets.CLI_E2E_SHARING_PUBLIC_KEY }}
INSTALL_APP: console
INSTALL_RECIPE: console-kind
- run: go test -v -race ./pkg/test/e2e/... -tags="e2e"
- run: |
cd $HOME/test
plural destroy --force --all --commit=""
env:
PLURAL_DESTROY_CONFIRM: true
PLURAL_DESTROY_AFFIRM_UNINSTALL_APPS: true