Skip to content

Commit 55b5daf

Browse files
chore: separate update beanstalk in another step
1 parent 50f087e commit 55b5daf

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/deploy-prd.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@ jobs:
4545
run: |
4646
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./application
4747
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
48+
49+
beanstalk:
50+
needs: build
51+
name: Update beanstalk
52+
runs-on: ubuntu-latest
4853

49-
- name: Update beanstalk version
50-
env:
51-
ENVIRONMENT: production
52-
run: |
53-
aws elasticbeanstalk update-environment --environment-name $ENVIRONMENT --version-label $ENVIRONMENT
54+
steps:
55+
- name: Update beanstalk version
56+
env:
57+
ENVIRONMENT: production
58+
run: |
59+
aws elasticbeanstalk update-environment --environment-name $ENVIRONMENT --version-label $ENVIRONMENT

env/prod/Dockerrun.aws.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"AWSEBDockerrunVersion": "1",
33
"Image": {
4-
"Name": "384775792797.dkr.ecr.us-east-1.amazonaws.com/docker-beanstalk-production",
5-
"Update": true
4+
"Name": "384775792797.dkr.ecr.us-east-1.amazonaws.com/docker-beanstalk-production",
5+
"Update": "true"
66
},
77
"Ports": [
8-
{
9-
"ContainerPort": "8000"
10-
}
8+
{
9+
"ContainerPort": "8000"
10+
}
1111
]
12-
}
12+
}
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)