-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/github.com/hashicorp/t…
…erraform-plugin-sdk/v2-2.28.0
- Loading branch information
Showing
5 changed files
with
36 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,7 @@ jobs: | |
- '1.2.*' | ||
- '1.3.*' | ||
- '1.4.*' | ||
- '1.5.*' | ||
steps: | ||
|
||
- name: Check out code into the Go module directory | ||
|
@@ -86,16 +87,16 @@ jobs: | |
- name: Setup Docker | ||
uses: docker-practice/actions-setup-docker@v1 | ||
with: | ||
docker_version: "20.10" | ||
docker_version: "24.0" | ||
docker_channel: stable | ||
docker_daemon_json: '{"insecure-registries":["0.0.0.0/0"]}' | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.11.1 | ||
node_image: kindest/node:v1.22.0 | ||
cluster_name: kind-cluster-v1.22.0 | ||
version: v0.20.0 | ||
node_image: kindest/node:v1.28.0 | ||
cluster_name: kind-cluster-v1.28.0 | ||
config: kind-cluster.yaml | ||
|
||
- name: Install Nginx ingress controller | ||
|
@@ -126,17 +127,20 @@ jobs: | |
- name: Wait for harbor to be ready | ||
run: | | ||
attempt_counter=0 | ||
max_attempts=120 # Max wait will be 10m | ||
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' $HARBOR_URL)" != "401" ]]; do | ||
max_attempts=25 # Max wait will be 2m | ||
while [[ "$(curl -k -s -o /dev/null -w ''%{http_code}'' $HARBOR_URL/api/v2.0/configurations -u $HARBOR_USERNAME:$HARBOR_PASSWORD)" != "200" ]]; do | ||
if [ ${attempt_counter} -eq ${max_attempts} ];then | ||
echo "Max attempts reached" | ||
kubectl get pods -A | ||
curl -v $HARBOR_URL | ||
exit 1 | ||
fi | ||
printf '.' | ||
attempt_counter=$(($attempt_counter+1)) | ||
sleep 5 | ||
done | ||
sleep 5 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters