Skip to content

Commit

Permalink
added name with github sha
Browse files Browse the repository at this point in the history
  • Loading branch information
parkersarahl committed Jul 30, 2024
1 parent 26d75e3 commit a67b565
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
env:
ECR_REGISTRY: ${{ steps.login-aws-ecr.outputs.registry }}
ECR_REPOSITORY: ${{secrets.API_IMAGE_REPO}}
IMAGE_TAG: v2
IMAGE_TAG: ${{ github.sha}}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./api
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
Expand All @@ -47,7 +47,7 @@ jobs:
env:
ECR_REGISTRY: ${{ steps.login-aws-ecr.outputs.registry }}
ECR_REPOSITORY: ${{secrets.FRONTEND_IMAGE_REPO}}
IMAGE_TAG: v2
IMAGE_TAG: ${{ github.sha}}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./frontend
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
aws eks update-kubeconfig --name ${{secrets.K8S_CLUSTER_NAME}} --region ${{secrets.AWS_REGION}}
- name: Install/Update Helm Chart
run: |
helm upgrade --install todo-app ./todo --set database.host=${{secrets.DB_HOST}} --set database.username=${{secrets.DB_USERNAME}} --set database.password=${{secrets.DB_PASSWORD}} --set api.image.repository=${{secrets.API_IMAGE_URI}} --set frontend.image.repository=${{secrets.FRONTEND_IMAGE_URI}}
helm upgrade --install todo-app ./todo --set database.host=${{secrets.DB_HOST}} --set database.username=${{secrets.DB_USERNAME}} --set database.password=${{secrets.DB_PASSWORD}} --set api.image.repository=${{secrets.API_IMAGE_URI}} --set frontend.image.repository=${{secrets.FRONTEND_IMAGE_URI}} --set api.image.tag=${{github.sha}} --set frontend.image.tag=${{github.sha}}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function App() {
return (
<div className="container">
<div className="card">
<h3>What needs to be done? TEST</h3>
<h3>What needs to be done? EDIT</h3>
<div className="form">
<input
type="text"
Expand Down
4 changes: 2 additions & 2 deletions todo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ environment: production
api:
image:
repository: ""
tag: v2
tag: ""

frontend:
image:
repository: ""
tag: v2
tag: ""

0 comments on commit a67b565

Please sign in to comment.