Skip to content

Commit

Permalink
chore(): update google application credential to env and accepts base…
Browse files Browse the repository at this point in the history
…64 (#68)

Co-authored-by: muhammad-asghar-ali <[email protected]>
  • Loading branch information
alyfinder and muhammad-asghar-ali authored Jan 30, 2024
1 parent 8c13d94 commit 33d4ef8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 56 deletions.
2 changes: 2 additions & 0 deletions .env.debug
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ SECRET=rKjXAShxUY5YHSD8NeMZNYZK28vKzQ9nLYAJDGTR5pBXO7HM3lXAbmKE2liQVJ2B
TEMPORAL_HOST=localhost
EVENTS_SERVERS_URL=nats://localhost:4222
CASSANDRA_HOSTS=localhost
# https://cloud.google.com/artifact-registry/docs/docker/authentication
GOOGLE_APPLICATION_CREDENTIALS=ewogICJjbGllbnRfaWQiOiAiNzY0MDg2MDUxODUwLTZxcjRwNmdwaTZobjUwNnB0OGVqdXE4M2RpMzQxaHVyLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwKICAiY2xpZW50X3NlY3JldCI6ICJkLUZMOTVRMTlxN01RbUZwZDdoSEQwVHkiLAogICJxdW90YV9wcm9qZWN0X2lkIjogImNhcmdvZmxvLWRldi00MDA3MjAiLAogICJyZWZyZXNoX3Rva2VuIjogIjEvLzAzNnZxajdMTkxwWkVDZ1lJQVJBQUdBTVNOd0YtTDlJcmgtN0d3RkRkQUk2cHZmRHVpenFHcFBGMzNON3dtZDljRHVJZEU3T1BPTDFFY2luSVIzM0R5OUlSa0Zka1B5d2FZcmMiLAogICJ0eXBlIjogImF1dGhvcml6ZWRfdXNlciIKfT==
8 changes: 4 additions & 4 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
release-artifact:
runs-on: ubuntu-20.04
permissions:
contents: "read"
id-token: "write"
contents: 'read'
id-token: 'write'

steps:
- name: checkout
Expand All @@ -27,11 +27,11 @@ jobs:

- name: Authenticate with GCP
id: auth
uses: "google-github-actions/auth@v1"
uses: 'google-github-actions/auth@v1'
with:
token_format: access_token
credentials_json: ${{ secrets.GCP_JSON_KEY }}
access_token_lifetime: 300s
access_token_lifetime: 600s

- name: Login into Google Artifact Registry
uses: docker/login-action@v1
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/release-ctrlplane-api.yaml

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ services:
volumes:
- ./deploy/air/mothership.toml:/mothership/.air.toml
- ./:/mothership/
# - C:\Users\DELL\AppData\Roaming\gcloud\application_default_credentials.json:/root/.config/gcloud/application_default_credentials.json
- worker-mothership-go-pkg-mod:/go/pkg/mod
- worker-mothership-build-cache:/root/.cache/go-build
working_dir: /mothership
Expand Down

0 comments on commit 33d4ef8

Please sign in to comment.