diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml index a113d39..741fda6 100644 --- a/.github/workflows/deploy-prd.yml +++ b/.github/workflows/deploy-prd.yml @@ -45,9 +45,15 @@ jobs: run: | docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./application docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + + beanstalk: + needs: build + name: Update beanstalk + runs-on: ubuntu-latest - - name: Update beanstalk version - env: - ENVIRONMENT: production - run: | - aws elasticbeanstalk update-environment --environment-name $ENVIRONMENT --version-label $ENVIRONMENT + steps: + - name: Update beanstalk version + env: + ENVIRONMENT: production + run: | + aws elasticbeanstalk update-environment --environment-name $ENVIRONMENT --version-label $ENVIRONMENT diff --git a/env/prod/Dockerrun.aws.json b/env/prod/Dockerrun.aws.json index 4c66617..5f55bad 100644 --- a/env/prod/Dockerrun.aws.json +++ b/env/prod/Dockerrun.aws.json @@ -1,12 +1,12 @@ { "AWSEBDockerrunVersion": "1", "Image": { - "Name": "384775792797.dkr.ecr.us-east-1.amazonaws.com/docker-beanstalk-production", - "Update": true + "Name": "384775792797.dkr.ecr.us-east-1.amazonaws.com/docker-beanstalk-production", + "Update": "true" }, "Ports": [ - { - "ContainerPort": "8000" - } + { + "ContainerPort": "8000" + } ] -} \ No newline at end of file + } \ No newline at end of file diff --git a/env/prod/docker-beanstalk-production.zip b/env/prod/docker-beanstalk-production.zip index e1c2a74..95280de 100644 Binary files a/env/prod/docker-beanstalk-production.zip and b/env/prod/docker-beanstalk-production.zip differ