#GitHub - google-github-actions/setup-gcl...
1 messages · Page 1 of 1 (latest)
did you pass authentication info to dagger? This action authenticates your github runner against gcloud. You can look outputs of action https://github.com/google-github-actions/auth/blob/e607103ba47e9d2221c6f81b7cf0b4699fa2f055/action.yml#L163-L182 if it is possible to pass auth info to dagger
Thank you for your help
I fixed this issue by adding a step/job (called "Configure Docker client"):
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: 'Use gcloud CLI'
run: 'gcloud info'
- name: Configure Docker Client
run: |-
gcloud auth configure-docker --quiet
gcloud auth configure-docker europe-west1-docker.pkg.dev --quiet
- name: Install Dagger CLI
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }
- name: Run Dagger pipeline
run: dagger run go run main.go
I hope it helps anyone that encounters this
IAM permission : Artifact Registry Writer