Merge pull request #2294 from fluxcd/ci-del-repo
Improve the bootstrap e2e test workflow
This commit is contained in:
17
.github/workflows/bootstrap.yaml
vendored
17
.github/workflows/bootstrap.yaml
vendored
@@ -103,13 +103,26 @@ jobs:
|
|||||||
/tmp/flux reconcile image repository podinfo
|
/tmp/flux reconcile image repository podinfo
|
||||||
/tmp/flux reconcile image update flux-system
|
/tmp/flux reconcile image update flux-system
|
||||||
/tmp/flux get images all
|
/tmp/flux get images all
|
||||||
/tmp/flux get images policy podinfo | grep "5.2.1"
|
|
||||||
/tmp/flux get image update flux-system | grep commit
|
retries=10
|
||||||
|
count=0
|
||||||
|
ok=false
|
||||||
|
until ${ok}; do
|
||||||
|
/tmp/flux get image update flux-system | grep 'commit' && ok=true || ok=false
|
||||||
|
count=$(($count + 1))
|
||||||
|
if [[ ${count} -eq ${retries} ]]; then
|
||||||
|
echo "No more retries left"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sleep 6
|
||||||
|
/tmp/flux reconcile image update flux-system
|
||||||
|
done
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
||||||
GITHUB_REPO_NAME: ${{ steps.vars.outputs.test_repo_name }}
|
GITHUB_REPO_NAME: ${{ steps.vars.outputs.test_repo_name }}
|
||||||
GITHUB_ORG_NAME: fluxcd-testing
|
GITHUB_ORG_NAME: fluxcd-testing
|
||||||
- name: delete repository
|
- name: delete repository
|
||||||
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
curl \
|
curl \
|
||||||
-X DELETE \
|
-X DELETE \
|
||||||
|
|||||||
Reference in New Issue
Block a user