1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-08 00:55:14 +00:00

fix deploy.sh, list auth+config

This commit is contained in:
Jason Hall 2021-09-22 08:51:59 -04:00
parent 49dc313c4d
commit 7ce512daa8
2 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -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