Skip to content

Remove extra spaces for yaml keys #5

Remove extra spaces for yaml keys

Remove extra spaces for yaml keys #5

Workflow file for this run

# Add a comment to force a change.
name: Webhook CI
on:
workflow_call:
push:
branches:
- release/v*
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
pull_request:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
permissions:
contents: read
jobs:
build:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- amd64
# TODO: See wrangler for an example of how to run tests on arm64, not ready here
# - arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
# TODO: Pull this next one out once there's a helm-release for rancher 2.9
- name: Checkout rancher/rancher and build the chart
run: |
pushd "${{ runner.temp}}"
git clone --depth 1 -b release/v2.9 https://github.com/rancher/rancher.git rancherDir
cd rancherDir
./scripts/chart/build chart
tar cfz "${{ runner.temp }}/rancher.tgz" -C build/chart/rancher .
popd
- run: echo "base_ref: ${{ github.base_ref }}, head_ref: ${{ github.head_ref }}, ref_name: ${{github.ref_name}" && exit 1

Check failure on line 47 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 47
name: wip debug
- run: make ci
name: ci
- name: install K3d
run: ./.github/workflows/scripts/install-k3d.sh
env:
K3D_VERSION: latest
- name: setup cluster
run: ./.github/workflows/scripts/setup-cluster.sh
env:
CLUSTER_NAME: webhook
K3S_VERSION: v1.28.9-k3s1
ARCH: "${{ matrix.arch }}"
- name: import image
run: k3d image import dist/rancher-webhook-image.tar -c webhook
- name: start rancher
run: ./.github/workflows/scripts/start-rancher.sh
env:
CHART_PATH: "${{ runner.temp }}/rancher.tgz"
RANCHER_IMAGE_TAG: "v2.9-head"
VERSION: "2.9"
- name: get vars
run: cat dist/image_tag >> $GITHUB_ENV
- name: Run integration tests
run: ./.github/workflows/scripts/integration-test-ci
env:
ARCH: "${{ matrix.arch }}"
CLUSTER_NAME: webhook
IMAGE_REPO: rancher/webhook
IMAGE_TAG: "${{ env.IMAGE_TAG }}"