Skip to content

Commit

Permalink
chore: attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oluwatunmise-olat committed Jan 29, 2024
1 parent a3937bb commit ec38fc1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pre-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Application
run: yarn run app:build
run: |
yarn run app:build
echo "BUILD_PATH=./dist" >> $GITHUB_ENV
build_docker_image_and_push_to_ecr:
runs-on: ubuntu-latest
Expand All @@ -42,9 +44,12 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Set Build Input
run: echo "BUILD_PATH=${{ needs.build_app.outputs.BUILD_PATH }}" >> $GITHUB_ENV

- name: Build and Push Docker Image to Amazon ECR
run: |
docker build -t ${{ secrets.REGISTRY_URL }}/${{ secrets.REPOSITORY_NAME }}:latest .
docker build -t ${{ secrets.REGISTRY_URL }}/${{ secrets.REPOSITORY_NAME }}:latest . $BUILD_PATH
docker push ${{ secrets.REGISTRY_URL }}/${{ secrets.REPOSITORY_NAME }}:latest
- name: Deploy to Lambda
run: |
Expand Down

0 comments on commit ec38fc1

Please sign in to comment.