Skip to content

Commit

Permalink
NOREF Fix YAML indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mwbenowitz committed Mar 9, 2021
1 parent e228c09 commit 364de7d
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/build-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,46 @@ on:
jobs:
publish_qa:
name: Publish image to ECR
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- id: nvmrc
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)

- name: Set up node with version from nvm
uses: actions/setup-node@v2
with: { node-version: "${{ steps.nvmrc.outputs.NODE_VERSION }}" }
- id: nvmrc
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)

- name: build next.js app
run: |
npm install
npm build
- name: Set up node with version from nvm
uses: actions/setup-node@v2
with: { node-version: "${{ steps.nvmrc.outputs.NODE_VERSION }}" }

- name: build next.js app
run: |
npm install
npm build
- name: Configure AWS credentials from Test account
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-east-1
- name: Configure AWS credentials from Test account
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-east-1

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: sfr-front-end
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: sfr-front-end
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
- name: Force ECS Update
run: |
aws ecs update-service --cluster sfr-front-end-qa --service sfr-front-end-qa --force-new-deployment
- name: Force ECS Update
run: |
aws ecs update-service --cluster sfr-front-end-qa --service sfr-front-end-qa --force-new-deployment

0 comments on commit 364de7d

Please sign in to comment.