diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2ce80d3..4e00523 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,7 +27,7 @@ jobs: KO_DOCKER_REPO: gcr.io/kontaindotme - uses: 'google-github-actions/setup-gcloud@v0.2.1' with: - project_id: 'kontaindotme' + project_id: kontaindotme - uses: 'google-github-actions/auth@v0.3.0' id: auth @@ -35,6 +35,9 @@ jobs: workload_identity_provider: 'projects/7577580991/locations/global/workloadIdentityPools/gha-pool/providers/gha-provider' service_account: 'gha-deployer@kontaindotme.iam.gserviceaccount.com' create_credentials_file: true - - run: gcloud auth login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}" + - run: | + gcloud auth list + gcloud config list + gcloud auth login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}" - run: ./deploy.sh diff --git a/deploy.sh b/deploy.sh index ddad384..935b321 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,4 +2,8 @@ set -euxo pipefail -time find cmd -name "deploy.sh" -exec {} \; + +find cmd -name 'deploy.sh' -print0 | + while IFS= read -r -d '' line; do + bash -c "$line" + done