Skip to content

Commit

Permalink
enable deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Apr 10, 2023
1 parent 75c780a commit b0e6fba
Showing 1 changed file with 2 additions and 42 deletions.
44 changes: 2 additions & 42 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,12 @@
name: deploy

env:
APIGW_DEPLOY: false
ECS_DEPLOY: false

on:
push:
branches:
- main

jobs:
deploy_apigw_staging:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Install cdk
run: npm install -g

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-cdk.txt
# Build and Deploy CDK application
- name: Build & Deploy
run: npm run cdk deploy tifeatures-timvt-staging -- --require-approval never

deploy_ecs_staging:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -60,7 +20,7 @@ jobs:

- name: docker build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: 853558080719.dkr.ecr.us-west-1.amazonaws.com/tf-veda-wfs3-registry-staging
ECR_REGISTRY: 853558080719.dkr.ecr.us-west-2.amazonaws.com/tf-veda-wfs3-registry-west2-staging
IMAGE_TAG: latest
run: |
aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_REGISTRY
Expand All @@ -70,7 +30,7 @@ jobs:
- name: ECS refresh service
env:
ECS_SERVICE_NAME: tf-veda-wfs3-service-staging
ECS_SERVICE_NAME: tf-veda-wfs3-service-west2-staging
AWS_ACCESS_KEY_ID: ${{ secrets.DEPLOY_USER_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEPLOY_USER_AWS_SECRET_ACCESS_KEY }}
run: |
Expand Down

0 comments on commit b0e6fba

Please sign in to comment.