Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brycegoh committed Nov 4, 2023
1 parent 648bb68 commit c746da8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:selene_${{github.run_number}} .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:selene_${{github.run_number}}
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:firecloud_${{github.run_number}} .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:firecloud_${{github.run_number}}
- name: Replace image in dockerrun file
env:
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }}
ECR_REPOSITORY_URI: ${{ env.ECR_REPOSITORY_URI }}
run: |
cp Dockerrun.aws.prod.json Dockerrun.aws.json
cp Dockerrun.aws.json Dockerrun.aws.json
sed -i "s/<ECR_REGISTRY>/$ECR_REPOSITORY_URI/g" Dockerrun.aws.json
sed -i "s/<SERVER_NAME>/$ECR_REPOSITORY/g" Dockerrun.aws.json
sed -i "s/<TAG>/selene_${{github.run_number}}/g" Dockerrun.aws.json
sed -i "s/<TAG>/firecloud_${{github.run_number}}/g" Dockerrun.aws.json
- name: Zip the dockerrun file
run: |
Expand All @@ -61,13 +61,13 @@ jobs:
env:
S3_BUCKET_NAME: ${{ env.S3_BUCKET_NAME }}
run: |
aws s3 cp deploy.zip s3://$S3_BUCKET_NAME/selene_deploy_${{github.run_number}}.zip
aws s3 cp deploy.zip s3://$S3_BUCKET_NAME/firecloud_deploy_${{github.run_number}}.zip
rm deploy.zip
- name: Deploy to EBS
run: |
aws elasticbeanstalk create-application-version \
--application-name ${{ env.EBS_APPLICATION_NAME }} --version-label ${{github.run_number}} \
--source-bundle S3Bucket=${{ env.S3_BUCKET_NAME }},S3Key=selene_deploy_${{github.run_number}}.zip
--source-bundle S3Bucket=${{ env.S3_BUCKET_NAME }},S3Key=firecloud_deploy_${{github.run_number}}.zip
aws elasticbeanstalk update-environment \
--environment-name ${{ env.EBS_ENVIRONMENT_NAME }} --version-label ${{github.run_number}}

0 comments on commit c746da8

Please sign in to comment.