Skip to content

Commit a17103d

Browse files
Merge pull request #6 from software-architecture-fiap/feature/try-deploy
Deploy flow
2 parents 83de7be + 09bd352 commit a17103d

File tree

7 files changed

+16
-32
lines changed

7 files changed

+16
-32
lines changed

.github/workflows/release-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
build-deploy-dev:
21-
if: contains(github.event.comment.body, '/deploy')
21+
if: ${{ github.event_name == 'issue_comment' && contains(github.event.comment.body, '/deploy') && github.actor != 'github-actions[bot]' && github.actor != 'sonarqubecloud[bot]' }}
2222
runs-on: ubuntu-latest
2323

2424
outputs:

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,3 @@ Este projeto está licenciado sob a MIT License - veja o arquivo [LICENSE](LICEN
170170
---
171171
172172
Se você encontrar problemas ou tiver dúvidas, sinta-se à vontade para abrir um *issue* ou fazer uma contribuição!
173-
174-
---
175-
176-

infra/kubernetes/base/order/deployment.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: order-service
19-
image: order-service:latest
19+
image: order-service:1.0.0
2020
ports:
2121
- containerPort: 8001
2222
resources:
@@ -26,21 +26,9 @@ spec:
2626
ephemeral-storage: "1Gi"
2727
limits:
2828
memory: "512Mi"
29-
storage: "1Gi"
3029
envFrom:
3130
- configMapRef:
3231
name: order-service-config
33-
items:
34-
- key: DATABASE_HOST
35-
path: DATABASE_HOST
36-
- key: DATABASE_NAME
37-
path: DATABASE_NAME
38-
- key: DATABASE_PORT
39-
path: DATABASE_PORT
40-
- key: LOG_LEVEL
41-
path: LOG_LEVEL
42-
- key: SERVICE_PORT
43-
path: SERVICE_PORT
4432
volumeMounts:
4533
- name: env-file
4634
mountPath: /app/.env

infra/kubernetes/development/kustomization.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ kind: Kustomization
44
namespace: development
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: latest

infra/kubernetes/development/patch-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
image: app/tc-order-service:latest
1212
env:
1313
- name: ENVIRONMENT
14-
value: "development"
14+
value: "development"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
kind: Namespace
33
metadata:
4-
name: production
4+
name: production

infra/kubernetes/production/patch-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ spec:
1818
memory: "1Gi"
1919
env:
2020
- name: ENVIRONMENT
21-
value: "production"
21+
value: "production"

0 commit comments

Comments
 (0)