Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementation to run kube acceptance tests on GKE #4961

Merged
merged 24 commits into from
Jul 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clean up
  • Loading branch information
subodh1810 committed Jul 23, 2021
commit a6d07b683deb89b0d625c89c72f2a0809c98e9a8
7 changes: 1 addition & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -545,9 +545,6 @@ jobs:
sudo apt-get install socat

- name: Set up Cloud SDK
# env:
# USER: root
# HOME: /home/runner
uses: google-github-actions/setup-gcloud@master
with:
project_id: ${{ secrets.GKE_TEST_PROJECT_ID }}
@@ -561,9 +558,7 @@ jobs:
credentials: ${{ secrets.GKE_TEST_SA_KEY }}
cluster_name: kube-acceptance-test-cluster
location: us-central1-c
#
# - run: |-
# gcloud container clusters get-credentials "kube-acceptance-test-cluster" --zone "us-central1-c"

- name: Install kubectl
run: |-
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ function findAndDeleteTag () {
if [ $(curl --fail -LI --request GET 'https://hub.docker.com/v2/repositories/airbyte/'$1'/tags/'$TAG'/' --header 'Authorization: JWT '$2'' -o /dev/null -w '%{http_code}\n' -s) == "200" ];
then
echo "FOUND TAG" $TAG "in repository" $1 ",DELETING IT"
# curl --request DELETE 'https://hub.docker.com/v2/repositories/airbyte/'$1'/tags/'$TAG'/' --header 'Authorization: JWT '$2'';
curl --request DELETE 'https://hub.docker.com/v2/repositories/airbyte/'$1'/tags/'$TAG'/' --header 'Authorization: JWT '$2'';
else
echo "NOT FOUND TAG" $TAG "in repository" $1;
fi