12 Commits

Author SHA1 Message Date
48e5c9e15f Merge pull request #77 from HideyoshiSolutions/fix/fixes-ingress-cert
fix: fixes ingress cert
2025-11-08 22:17:16 -03:00
a33a08ac77 fix: fixes ingress cert 2025-11-08 22:16:09 -03:00
05646d61ed Merge pull request #75 from HideyoshiSolutions/fix/fixes-ingress-cert
fix: fixes ingress cert
2025-11-08 22:00:58 -03:00
08c599b345 fix: fixes ingress cert 2025-11-08 21:59:48 -03:00
c4e2a3362c Merge pull request #73 from HideyoshiSolutions/fix/fixes-rollout-check
fix: fixes rollout check
2025-11-07 21:54:19 -03:00
0a502489e3 fix: fixes rollout check 2025-11-07 21:52:44 -03:00
35c662df7e Merge pull request #71 from HideyoshiSolutions/fix/fixes-decrypt-secrets-ci
Fix/fixes decrypt secrets ci
2025-11-07 21:43:53 -03:00
9042b8d33b fix: fixes deploy by tag in dispatcher 2025-11-07 21:42:36 -03:00
def0658089 fix: fixes the decryption process in the ci 2025-11-07 21:40:10 -03:00
8244f1d5e0 Merge pull request #69 from HideyoshiSolutions/chore/better-ci
feat: adds deploy job to project
2025-11-07 21:32:52 -03:00
1a14f324be Merge pull request #68 from HideyoshiSolutions/chore/better-ci
chore: adds run-tests as a needed job for docker
2025-11-03 17:58:54 -03:00
281499626d Merge pull request #67 from HideyoshiSolutions/chore/better-ci
chore: better ci
2025-11-03 17:52:52 -03:00
2 changed files with 14 additions and 4 deletions

View File

@@ -2,6 +2,11 @@ name: ci
on: on:
push: push:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: false
jobs: jobs:
build: build:
@@ -122,10 +127,14 @@ jobs:
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7) SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}" IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
IMAGE_TAG="sha-${SHORT_SHA}" IMAGE_TAG="${{ github.event.inputs.tag || '' }}"
if [ -z "$IMAGE_TAG" ]; then
IMAGE_TAG="sha-$SHORT_SHA"
fi
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "" >> $GITHUB_ENV
- name: Import SOPS GPG Key - name: Import SOPS GPG Key
run: | run: |
@@ -139,7 +148,7 @@ jobs:
- name: Decrypt SOPS Secrets Test - name: Decrypt SOPS Secrets Test
run: | run: |
cd .k8s cd .k8s
sops -d secrets.enc.yml secrets.yml sops -d secrets.enc.yml > secrets.yml
- name: Apply Kubernetes Manifests - Configuration - name: Apply Kubernetes Manifests - Configuration
run: cat .k8s/config.template.yml | envsubst | kubectl apply -f - run: cat .k8s/config.template.yml | envsubst | kubectl apply -f -
@@ -156,7 +165,7 @@ jobs:
- name: Apply Kubernetes Manifests - Deployment - name: Apply Kubernetes Manifests - Deployment
run: | run: |
cat .k8s/deployment.template.yml | envsubst | kubectl apply -f - cat .k8s/deployment.template.yml | envsubst | kubectl apply -f -
cat .k8s/deployment.yaml | envsubst | kubectl rollout status deployment/frontend-deployment -n ${KUBE_NAMESPACE} --timeout=120s cat .k8s/deployment.template.yml | envsubst | kubectl rollout status deployment/frontend-deployment -n ${KUBE_NAMESPACE} --timeout=120s
- name: Apply Kubernetes Manifests - Service - name: Apply Kubernetes Manifests - Service
run: cat .k8s/service.template.yml | envsubst | kubectl apply -f - run: cat .k8s/service.template.yml | envsubst | kubectl apply -f -

View File

@@ -4,6 +4,7 @@ metadata:
name: backend-ingress name: backend-ingress
namespace: ${KUBE_NAMESPACE} namespace: ${KUBE_NAMESPACE}
annotations: annotations:
cert-manager.io/cluster-issuer: cluster-certificate-issuer
kubernetes.io/ingress.class: nginx kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/rewrite-target: /
@@ -11,7 +12,7 @@ spec:
tls: tls:
- hosts: - hosts:
- ${KUBE_API_DOMAIN} - ${KUBE_API_DOMAIN}
secretName: letsencrypt-cluster-certificate-tls secretName: backend-tls
rules: rules:
- host: ${KUBE_API_DOMAIN} - host: ${KUBE_API_DOMAIN}
http: http: