Skip to content

Commit

Permalink
Merge pull request #6 from andrebrito16/ci/new-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebrito16 authored Nov 10, 2023
2 parents 9f1cf7b + 1355f59 commit f7c4d69
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 56 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lyov Pipeline

on:
push:
deployment:
release:
types: [created]
pull_request:
types: [opened, reopened]

workflow_dispatch:
inputs:
environment:
description: "Environment"
required: true
type: choice
default: "dev"
options:
- dev
- stg
- prd

jobs:
SVC:
uses: andrebrito16/iac-github-actions/.github/workflows/svc.yml@main
secrets: inherit
with:
mainBranch: master
platforms: linux/amd64
environmentsAsNamespaces: true
nodeMatrix: "[18]"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ cgnaflightsapi-*.tar
/priv/static/

.env

/manifests/secrets/*.env
26 changes: 0 additions & 26 deletions kubernetes/deployments.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions kubernetes/ingress.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions kubernetes/service.yaml

This file was deleted.

1 change: 1 addition & 0 deletions manifests/configs/dev.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENV=development
12 changes: 12 additions & 0 deletions manifests/dependencies/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#@data/values
---
postgres:
enabled: true
values:
primary:
nodeSelector:
- name: kubernetes.io/arch
value: amd64
persistence:
enabled: true
size: 1Gi
12 changes: 12 additions & 0 deletions manifests/dependencies/prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#@data/values
---
postgres:
enabled: true
values:
primary:
nodeSelector:
- name: kubernetes.io/arch
value: amd64
persistence:
enabled: true
size: 1Gi
12 changes: 12 additions & 0 deletions manifests/dependencies/stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#@data/values
---
postgres:
enabled: true
values:
primary:
nodeSelector:
- name: kubernetes.io/arch
value: amd64
persistence:
enabled: true
size: 1Gi
21 changes: 21 additions & 0 deletions manifests/k8s.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#@data/values
---
port: 4000

env:
- name: PORT
value: "4000"
- name: TZ
value: America/Sao_Paulo

ingress:
enable: true
className: nginx
domain: radarbot.xyz

letsencrypt:
enable: true
email: [email protected]

deployment:
replicas: 1
1 change: 1 addition & 0 deletions manifests/secrets/dev.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
� ��ֶ�YN���l@��Xaڙv���Є��+=��A�j��~ЧMM|Izy�ӌ?�>>��a|���I?[���@�W���Lw��m�a���&2�SΧX.<����7��+��'^ƫ�
Expand Down

0 comments on commit f7c4d69

Please sign in to comment.