Skip to content

Commit 75ba754

Browse files
Merge pull request #9 from software-architecture-fiap/bugfix/update-pipeline
Refactor deployment configuration
2 parents 32f9606 + be5aed4 commit 75ba754

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
kubectl get namespace $ENVIRONMENT || kubectl create namespace $ENVIRONMENT
126126
127127
IMAGE_TAG=${{ env.NEW_VERSION }}
128-
kustomize edit set image app/tc-order-service=${{ needs.build.outputs.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.NEW_VERSION }}
128+
kustomize edit set image app/tc-order-service=$ECR_REGISTRY/$ECR_REPOSITORY:${{ env.NEW_VERSION }}
129129
130130
echo "Deploying $SERVICE_NAME in $ENVIRONMENT environment"
131131
echo "Using image version: ${{ env.NEW_VERSION }}"

infra/kubernetes/production/kustomization.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ kind: Kustomization
44
namespace: production
55

66
resources:
7-
- ../base
8-
- namespace.yaml
7+
- ../base
8+
- namespace.yaml
99

1010
patches:
11-
- path: patch-deployment.yaml
12-
target:
13-
kind: Deployment
14-
- path: order-service-config.yaml
15-
target:
16-
kind: ConfigMap
11+
- path: patch-deployment.yaml
12+
target:
13+
kind: Deployment
14+
- path: order-service-config.yaml
15+
target:
16+
kind: ConfigMap
1717

1818
images:
19-
- name: app/tc-order-service
20-
newName: 147671223315.dkr.ecr.us-east-1.amazonaws.com/app/tc-order-service
21-
newTag: 93aa24524f637335a3e7de8d5cbc24406e8f7b8b-dev
19+
- name: app/tc-order-service
20+
newName: 147671223315.dkr.ecr.us-east-1.amazonaws.com/app/tc-order-service
21+
newTag: v0.4.0

0 commit comments

Comments
 (0)