Skip to content

Commit

Permalink
Merge pull request kata-containers#7048 from sprt/sprt/fix-gha
Browse files Browse the repository at this point in the history
gha: Fix gha-run.sh and unbreak CI
  • Loading branch information
fidencio authored Jun 7, 2023
2 parents 452f286 + 69668ce commit 08d10d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-k8s-tests-on-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: Download Azure CLI
run: bash tests/integration/gha-run.sh install-az-cli
run: bash tests/integration/gha-run.sh install-azure-cli

- name: Log into the Azure account
run: bash tests/integration/gha-run.sh login-azure
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ function cleanup() {
kubectl delete ${deploy_spec}
kubectl -n kube-system wait --timeout=10m --for=delete -l name=kata-deploy pod

sed -i -e "s|quay.io/kata-containers/kata-deploy:latest|${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${DOCKER_TAG}|g" "${tools_dir}/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml"
sed -i -e "s|quay.io/kata-containers/kata-deploy:latest|${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}|g" "${tools_dir}/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml"
cat "${tools_dir}/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml"
cat "${tools_dir}/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml" | grep "${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${DOCKER_TAG}" || die "Failed to setup the tests image"
cat "${tools_dir}/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml" | grep "${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}" || die "Failed to setup the tests image"
kubectl apply ${cleanup_spec}
sleep 180s

Expand Down Expand Up @@ -137,7 +137,7 @@ function main() {
cleanup-snp) cleanup "snp" ;;
cleanup-tdx) cleanup "tdx" ;;
delete-cluster) delete_cluster ;;
*) >&2 echo "Invalid action"; exit 2 ;;
*) >&2 echo "Invalid argument"; exit 2 ;;
esac
}

Expand Down

0 comments on commit 08d10d3

Please sign in to comment.