Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Co-authored-by: johnlcos <[email protected]>
  • Loading branch information
weiwang0305 and johnlcos committed Apr 15, 2024
1 parent 5baf628 commit e3e5deb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
Binary file added .DS_Store
Binary file not shown.
40 changes: 15 additions & 25 deletions .github/workflows/docker-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,24 @@ on:
branches:
- 'dev'

env:
AWS_REGION: us-east-1 # set this to your preferred AWS region, e.g. us-west-1
ECR_REPOSITORY: alerty

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push client
uses: docker/build-push-action@v5
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t alerty .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
context: ./client
push: true
tags: weiwang35/alerty:client-latest
2 changes: 1 addition & 1 deletion client/components/form-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const FormWrapper = ({ formType }: FormWrapperProps) => {
htmlFor='email'
className='flex flex-col justify-center items-start w-full text-subtext-color text-sm font-bold mb-2'
>
Email What WHAT WHAT? WHAT????? YOOOO WGAGTASdfasd
Email
<input
placeholder='Email'
type='email'
Expand Down

0 comments on commit e3e5deb

Please sign in to comment.