Skip to content

Commit ea5416b

Browse files
oliverkurthGitHub Enterprise
authored and
GitHub Enterprise
committed
Merge pull request #4 from vcf/topic/okurth/github-workflow-poi-test-branch
create branch in cayman-poi with poi/src set to current change
2 parents c5da7c0 + e2944e1 commit ea5416b

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/poi-vcf.yml

+28-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,33 @@ jobs:
2323
docker push ${POI_REGISTRY}/${POI_IMAGE_NAME}
2424
docker system prune -f
2525
26+
cayman_poi:
27+
runs-on: self-hosted
28+
steps:
29+
- name: Checkout Cayman POI
30+
uses: actions/checkout@master
31+
with:
32+
repository: vcf/cayman-poi
33+
ref: vmware-master
34+
path: ./cayman-poi
35+
submodules: "true"
36+
fetch-depth: 0
37+
ssh-key: ${{ secrets.POI_CICD_SSH_KEY }}
38+
ssh-strict: "false"
39+
40+
- name: create branch and push
41+
run: |
42+
cd ./cayman-poi
43+
git checkout -b test/poi-submodule/${GITHUB_SHA::7}
44+
pushd poi/src
45+
git checkout ${GITHUB_SHA::7}
46+
popd
47+
git add poi/src
48+
git config --global user.email "[email protected]"
49+
git config --global user.name "POI CI/CD"
50+
git commit -m "update poi/src to ${GITHUB_SHA::7} for testing branch ${{ github.ref_name }}"
51+
git push origin test/poi-submodule/${GITHUB_SHA::7}
52+
2653
ova-poi-harness:
2754
runs-on: self-hosted
2855
needs: build-container
@@ -55,7 +82,7 @@ jobs:
5582
ref: main
5683
path: ./poi-harness
5784
ssh-key: ${{ secrets.POI_CICD_SSH_KEY }}
58-
ssh-strict: false
85+
ssh-strict: "false"
5986

6087
- name: build OVA
6188
env:

0 commit comments

Comments
 (0)