File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 66 merge_group :
77 workflow_dispatch :
88
9+ env :
10+ SOURCE_REPO : https://github.com/${{ github.event.pull_request.head.repo.full_name || 'rancher/cluster-api-addon-provider-fleet' }}
11+ SOURCE_BRANCH : ${{ github.head_ref || github.ref_name }}
12+
913jobs :
1014 build :
1115 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ ARCH := if arch() == "aarch64" { "arm64"} else { "amd64" }
1111DIST := os ()
1212REFRESH_BIN := env_var_or_default (' REFRESH_BIN' , ' 1' )
1313
14+ GIT_REPO := env_var_or_default (' SOURCE_REPO' , ` git remote get-url origin ` )
15+ GIT_BRANCH := env_var_or_default (' SOURCE_BRANCH' , ` git branch --show-current ` )
16+
1417# Test providers
1518CLUSTER_API_VERSION := " v1.12.2"
1619CAPRKE2_VERSION := " v0.23.0"
@@ -127,12 +130,11 @@ deploy-calico:
127130deploy-calico-gitrepo : _download-yq
128131 #!/usr/bin/env bash
129132 set -euxo pipefail
130- repo=` git remote get-url origin `
131- branch=` git branch --show-current `
132133 cp testdata/ gitrepo-calico.yaml {{ OUT_DIR}} / gitrepo-calico.yaml
133- yq -i " .spec.repo = \" ${repo}\" " {{ OUT_DIR}} / gitrepo-calico.yaml
134- yq -i " .spec.branch = \" ${branch}\" " {{ OUT_DIR}} / gitrepo-calico.yaml
135- kubectl apply -f {{ OUT_DIR}} / gitrepo-calico.yaml
134+ yq -i " .spec.repo = \" {{ GIT_REPO}} \" " {{ OUT_DIR}} / gitrepo-calico.yaml
135+ yq -i " .spec.branch = \" {{ GIT_BRANCH}} \" " {{ OUT_DIR}} / gitrepo-calico.yaml
136+ #kubectl apply -f {{OUT_DIR}}/gitrepo-calico.yaml
137+ cat {{ OUT_DIR}} / gitrepo-calico.yaml
136138
137139# Deploy an example app bundle to the cluster
138140deploy-app :
You can’t perform that action at this time.
0 commit comments