Browse Source

add gcp creds evn var

Lucas Severo Alves 4 years ago
parent
commit
360a210dcf
2 changed files with 3 additions and 1 deletions
  1. 0 1
      .github/workflows/ci.yml
  2. 3 0
      .github/workflows/e2e.yml

+ 0 - 1
.github/workflows/ci.yml

@@ -19,7 +19,6 @@ env:
   # a step 'if env.GHCR_USERNAME' != ""', so we copy these to succinctly test whether
   # credentials have been provided before trying to run steps that need them.
   GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
-  GCP_SM_SA_JSON: ${{ secrets.GCP_SM_SA_JSON}}
 
 jobs:
   detect-noop:

+ 3 - 0
.github/workflows/e2e.yml

@@ -15,6 +15,7 @@ env:
   # a step 'if env.GHCR_USERNAME' != ""', so we copy these to succinctly test whether
   # credentials have been provided before trying to run steps that need them.
   GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
+  GCP_SM_SA_JSON: ${{ secrets.GCP_SM_SA_JSON}}
 
 name: e2e tests
 
@@ -81,6 +82,7 @@ jobs:
     - name: Run e2e Tests
       run: |
         export PATH=$PATH:$(go env GOPATH)/bin
+        export GCP_SM_SA_JSON=${{env.GCP_SM_SA_JSON}}
         go get github.com/onsi/ginkgo/ginkgo
         make test.e2e
 
@@ -150,6 +152,7 @@ jobs:
     - name: Run e2e Tests
       run: |
         export PATH=$PATH:$(go env GOPATH)/bin
+        export GCP_SM_SA_JSON=${{env.GCP_SM_SA_JSON}}
         go get github.com/onsi/ginkgo/ginkgo
         make test.e2e