diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fdbaba6..0c8ade6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,8 +40,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Copy Google Default credentials - run: cp $HOME/.config/gcloud/application_default_credentials.json ./cred.json + - name: Create Google Default credentials file + run: | + echo "${{ secrets.GCLOUD_SERVICE_KEY }}" > cred.json - name: Build Image run: docker build -t web . --build-arg project_id=${{vars.PROJECT_ID}}