From 24469036e0f481358b4f1490181e2a8e61873b5e Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Thu, 9 Jan 2025 22:08:21 +0100 Subject: [PATCH] do not deploy maint branch --- .github/workflows/ci.yml | 114 +++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e2f6b3f..fc93f237 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -194,60 +194,60 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - deploy: - needs: [tests, publish] - runs-on: ubuntu-latest - if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' && github.repository == 'developmentseed/titiler' - - defaults: - run: - working-directory: deployment/aws - - steps: - - uses: actions/checkout@v4 - - # Let's wait a bit to make sure Pypi is up to date - - name: Sleep for 120 seconds - run: sleep 120s - shell: bash - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '14.x' - - - name: Install cdk - run: npm install -g - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r requirements-cdk.txt - - # Let's wait a bit to make sure package is available on pypi - - name: Sleep for 120 seconds - run: sleep 120s - shell: bash - - # Build and Deploy CDK application - - name: Build & Deploy - run: npm run cdk -- deploy ${{ secrets.STACK_NAME }}-lambda-${{ secrets.STACK_STAGE }} --require-approval never - env: - TITILER_STACK_NAME: ${{ secrets.STACK_NAME }} - TITILER_STACK_STAGE: ${{ secrets.STACK_STAGE }} - TITILER_STACK_MEMORY: ${{ secrets.STACK_MEMORY }} - TITILER_STACK_OWNER: ${{ secrets.STACK_OWNER }} - TITILER_STACK_CLIENT: ${{ secrets.STACK_CLIENT }} - TITILER_STACK_BUCKETS: ${{ secrets.STACK_BUCKETS }} + # deploy: + # needs: [tests, publish] + # runs-on: ubuntu-latest + # if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' && github.repository == 'developmentseed/titiler' + + # defaults: + # run: + # working-directory: deployment/aws + + # steps: + # - uses: actions/checkout@v4 + + # # Let's wait a bit to make sure Pypi is up to date + # - name: Sleep for 120 seconds + # run: sleep 120s + # shell: bash + + # - name: Configure AWS credentials + # uses: aws-actions/configure-aws-credentials@v4 + # with: + # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # aws-region: us-east-1 + + # - name: Set up Node.js + # uses: actions/setup-node@v4 + # with: + # node-version: '14.x' + + # - name: Install cdk + # run: npm install -g + + # - name: Set up Python + # uses: actions/setup-python@v5 + # with: + # python-version: '3.x' + + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # python -m pip install -r requirements-cdk.txt + + # # Let's wait a bit to make sure package is available on pypi + # - name: Sleep for 120 seconds + # run: sleep 120s + # shell: bash + + # # Build and Deploy CDK application + # - name: Build & Deploy + # run: npm run cdk -- deploy ${{ secrets.STACK_NAME }}-lambda-${{ secrets.STACK_STAGE }} --require-approval never + # env: + # TITILER_STACK_NAME: ${{ secrets.STACK_NAME }} + # TITILER_STACK_STAGE: ${{ secrets.STACK_STAGE }} + # TITILER_STACK_MEMORY: ${{ secrets.STACK_MEMORY }} + # TITILER_STACK_OWNER: ${{ secrets.STACK_OWNER }} + # TITILER_STACK_CLIENT: ${{ secrets.STACK_CLIENT }} + # TITILER_STACK_BUCKETS: ${{ secrets.STACK_BUCKETS }}