From 908bbbc4760f2a98f6e6f825cdcf128b6307bb4b Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Thu, 25 Jul 2024 13:44:09 -0500 Subject: [PATCH] turn off deploy to dev as it not really used currently --- .github/workflows/ci-cd-dev.yml | 94 ++++++++++++++++----------------- .github/workflows/deploy.yml | 3 -- 2 files changed, 47 insertions(+), 50 deletions(-) diff --git a/.github/workflows/ci-cd-dev.yml b/.github/workflows/ci-cd-dev.yml index 06007560..504f78e4 100644 --- a/.github/workflows/ci-cd-dev.yml +++ b/.github/workflows/ci-cd-dev.yml @@ -72,53 +72,53 @@ jobs: - name: Pytest run: pytest dags/ - deploy-to-dev: - runs-on: ubuntu-latest - needs: [tests] - # deploy to dev occurs every time - # someone submits a pr targeting `master` - # from a branch at `stellar/stellar-etl-airflow` repo - if: github.repository == 'stellar/stellar-etl-airflow' - # known caveats: - # if there's more than 1 person working - # in the same file this won't behave nicely - - steps: - - uses: actions/checkout@v3 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - - name: Install dependencies - run: | - pip install --upgrade pip - pip install google-cloud-storage==2.1.0 - - - name: Authenticate to test-hubble GCP - uses: google-github-actions/auth@v1 - with: - credentials_json: "${{ secrets.CREDS_TEST_HUBBLE }}" - - - name: Upload files to dev GCS bucket - run: python dags/stellar_etl_airflow/add_files_to_composer.py --bucket $BUCKET - env: - GOOGLE_CLOUD_PROJECT: test-hubble-319619 - BUCKET: us-central1-test-hubble-2-5f1f2dbf-bucket - - - name: Update Airflow variables - uses: actions-hub/gcloud@master - env: - PROJECT_ID: test-hubble-319619 - APPLICATION_CREDENTIALS: "${{ secrets.CREDS_TEST_HUBBLE }}" - COMPOSER_ENVIRONMENT: test-hubble-2 - LOCATION: us-central1 - with: - args: > - components install kubectl && gcloud composer environments run - $COMPOSER_ENVIRONMENT --location $LOCATION variables import - -- gcsfuse/actual_mount_path/variables.json + # deploy-to-dev: + # runs-on: ubuntu-latest + # needs: [tests] + # # deploy to dev occurs every time + # # someone submits a pr targeting `master` + # # from a branch at `stellar/stellar-etl-airflow` repo + # if: github.repository == 'stellar/stellar-etl-airflow' + # # known caveats: + # # if there's more than 1 person working + # # in the same file this won't behave nicely + + # steps: + # - uses: actions/checkout@v3 + + # - name: Setup Python + # uses: actions/setup-python@v4 + # with: + # python-version: 3.8 + + # - name: Install dependencies + # run: | + # pip install --upgrade pip + # pip install google-cloud-storage==2.1.0 + + # - name: Authenticate to test-hubble GCP + # uses: google-github-actions/auth@v1 + # with: + # credentials_json: "${{ secrets.CREDS_TEST_HUBBLE }}" + + # - name: Upload files to dev GCS bucket + # run: python dags/stellar_etl_airflow/add_files_to_composer.py --bucket $BUCKET + # env: + # GOOGLE_CLOUD_PROJECT: test-hubble-319619 + # BUCKET: us-central1-test-hubble-2-5f1f2dbf-bucket + + # - name: Update Airflow variables + # uses: actions-hub/gcloud@master + # env: + # PROJECT_ID: test-hubble-319619 + # APPLICATION_CREDENTIALS: "${{ secrets.CREDS_TEST_HUBBLE }}" + # COMPOSER_ENVIRONMENT: test-hubble-2 + # LOCATION: us-central1 + # with: + # args: > + # components install kubectl && gcloud composer environments run + # $COMPOSER_ENVIRONMENT --location $LOCATION variables import + # -- gcsfuse/actual_mount_path/variables.json promote-to-prod: runs-on: ubuntu-latest diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 02285b3f..eb72b8ac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,6 @@ name: Deploy on: - push: - branches: - - "github-actions-for-release-proces" workflow_dispatch: inputs: envName: