Skip to content

Add workflow, implement TLS. #1

Add workflow, implement TLS.

Add workflow, implement TLS. #1

Workflow file for this run

name: Build and Deploy to AWS ECR
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
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: Login to Amazon ECR
uses: aws-actions/amazon-ecr-login@v1
- name: Build, Tag, and Push Docker image to ECR
run: |
docker build -t hs-tic-tac-toe-net .
docker tag hs-tic-tac-toe-net 211125762589.dkr.ecr.us-west-2.amazonaws.com/hs-tic-tac-toe-net:latest
docker push 211125762589.dkr.ecr.us-west-2.amazonaws.com/hs-tic-tac-toe-net:latest
env:
AWS_DEFAULT_REGION: us-west-2