Skip to content

Commit

Permalink
do not deploy maint branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jan 9, 2025
1 parent cc72f83 commit 2446903
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 2446903

Please sign in to comment.