diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 023cd50..b039c33 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 @@ -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 @@ -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: |