Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed May 21, 2024
1 parent ea39f04 commit 38de37f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
6 changes: 0 additions & 6 deletions .ebextensions/01_build_frontend.config

This file was deleted.

13 changes: 0 additions & 13 deletions .ebextensions/02_wsgi.config

This file was deleted.

31 changes: 28 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,32 @@ jobs:
npm run build
working-directory: frontend

# Fail for now
- name: Fail
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ROLE_NAME }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Log in to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push Docker image
env:
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
IMAGE_TAG: latest
run: |
exit 1
docker buildx build --platform linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile . --push
# - name: Update Lambda function to use new Docker image
# env:
# FUNCTION_NAME: ${{ secrets.LAMBDA_FUNCTION_NAME }}
# ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
# ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
# IMAGE_TAG: latest
# run: |
# aws lambda update-function-code --function-name $FUNCTION_NAME --image-uri $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

0 comments on commit 38de37f

Please sign in to comment.