Skip to content

Commit

Permalink
Remove service url
Browse files Browse the repository at this point in the history
  • Loading branch information
jbi89 committed May 12, 2023
1 parent 1aa3aa8 commit 17605e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,35 @@ jobs:
- name: AWS ECR Log In
run: |
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 400869475597.dkr.ecr.us-east-1.amazonaws.com/demo-1-prod
- name: Push the Docker container
shell: bash
run: |
docker tag dk-sample-backend:latest 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:latest
docker push 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:latest
docker tag dk-sample-backend:latest 400869475597.dkr.ecr.us-east-1.amazonaws.com/demo-1-prod:latest
docker push 400869475597.dkr.ecr.us-east-1.amazonaws.com/demo-1-prod:latest
- name: Cleanup the containers
shell: bash
run: |
export GIT_TAG=$(echo $GITHUB_SHA | head -c 7)
docker rmi -f 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:latest
deploy:
needs: build
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Trigger ECS deployment
run: |
aws --region us-east-1 ecs update-service --cluster dk-sample-backend --service dk-sample-backend --force-new-deploymentx
docker rmi -f 400869475597.dkr.ecr.us-east-1.amazonaws.com/demo-1-prod:latest
# deploy:
# needs: build
# name: Deploy
# runs-on: ubuntu-latest
# steps:
# - name: Checkout the repository
# uses: actions/checkout@v2

# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-1

# - name: Trigger ECS deployment
# run: |
# aws --region us-east-1 ecs update-service --cluster dk-sample-backend --service dk-sample-backend --force-new-deploymentx
1 change: 0 additions & 1 deletion Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public void ConfigureServices(IServiceCollection services)
// TODO Remove localhost
AmazonDynamoDBConfig clientConfig = new AmazonDynamoDBConfig();
clientConfig.RegionEndpoint = RegionEndpoint.USEast1;
clientConfig.ServiceURL = "http://localhost:8000";
AmazonDynamoDBClient client = new AmazonDynamoDBClient(clientConfig);
DynamoDBContext context = new DynamoDBContext(client);

Expand Down

0 comments on commit 17605e2

Please sign in to comment.