Skip to content

Commit

Permalink
wip: new github apprunnner workflow on each push.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyama341 committed Oct 17, 2024
1 parent 1fab742 commit 4da7f09
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ name: Deploy to Amazon ECR and Update App Runner

on:
push:
tags:
- "v*" # Triggers the workflow when a Git tag starting with 'v' is pushed
branches: ["main"]

env:
AWS_REGION: eu-west-1 # App Runner service region
Expand Down Expand Up @@ -58,7 +57,7 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker build --platform linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 4da7f09

Please sign in to comment.