Skip to content

Commit

Permalink
ci: remove gcp test
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang committed Apr 13, 2024
1 parent 43aaf7a commit a7e41c2
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,4 @@ jobs:
TRADE_MODE: paper
IB_ACCOUNT: ${{ secrets.IB_ACCOUNT }}
IB_PASSWORD: ${{ secrets.IB_PASSWORD }}

- uses: 'google-github-actions/setup-gcloud@v1'
with:
version: '>= 363.0.0'
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Run google clound example
run: |
docker run \
--env GCP_SECRET=True \
--env GCP_SECRET_IB_ACCOUNT=$GCP_SECRET_IB_ACCOUNT \
--env GCP_SECRET_IB_PASSWORD=$GCP_SECRET_IB_PASSWORD \
--env GCP_SECRET_IB_TRADE_MODE=$GCP_SECRET_IB_TRADE_MODE \
--env GCP_PROJECT_ID=$GCP_PROJECT_ID \
-e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/credentials.json \
-v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/keys/credentials.json:ro \
-d \
$IMAGE_NAME;
sleep 30;
if [ -z "$(docker ps -a -q)" ]; then exit 1; fi
env:
GCP_SECRET_IB_ACCOUNT: ${{ secrets.GCP_SECRET_IB_ACCOUNT }}
GCP_SECRET_IB_PASSWORD: ${{ secrets.GCP_SECRET_IB_PASSWORD }}
GCP_SECRET_IB_TRADE_MODE: ${{ secrets.GCP_SECRET_IB_TRADE_MODE }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}

0 comments on commit a7e41c2

Please sign in to comment.