Skip to content

feat:AddedActions

feat:AddedActions #1

Workflow file for this run

name: Deploy to AWS App Runner
on:
push:
branches: [main]
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
ECR_REPO: ${{ secrets.ECR_REPO }}
IMAGE_TAG: latest
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
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: Log in to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Build and Push Docker Image
id: docker
run: |
IMAGE_URI="${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPO }}:${{ env.IMAGE_TAG }}"
echo "IMAGE_URI=$IMAGE_URI" >> $GITHUB_OUTPUT
docker build -t $IMAGE_URI .
docker push $IMAGE_URI
- name: Output Image URI
run: echo "βœ… Image successfully pushed: ${{ steps.docker.outputs.IMAGE_URI }}"

Check failure on line 40 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yaml

Invalid workflow file

You have an error in your yaml syntax on line 40