Skip to content

Commit

Permalink
chore: ci with ladesa-ro/esteira-ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Nov 26, 2024
1 parent e48c59c commit f925c99
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 254 deletions.
50 changes: 0 additions & 50 deletions .devops/k8s/base/deployment.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions .devops/k8s/base/kustomization.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions .devops/k8s/base/service.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .devops/k8s/overlays/production/config.properties

This file was deleted.

13 changes: 0 additions & 13 deletions .devops/k8s/overlays/production/deployment.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions .devops/k8s/overlays/production/ingress.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .devops/k8s/overlays/production/kustomization.yaml

This file was deleted.

42 changes: 42 additions & 0 deletions .devops/values.common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
applicationName: ladesa-ro-docs

service:
enabled: true
type: NodePort
ports:
- name: web-service
port: 80
targetPort: web-port

deployment:
enabled: false

replicas: 1

containerSecurityContext: false

ports:
- containerPort: 80
name: web-port

readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 10
periodSeconds: 15
startupProbe:
httpGet:
path: /
port: 80
failureThreshold: 30
periodSeconds: 10

ingress:
enabled: false
84 changes: 0 additions & 84 deletions .github/workflows/cd-build-and-push.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/cd-deploy.yml

This file was deleted.

60 changes: 43 additions & 17 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,47 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
cd-build-push:
name: "CD: Build and Push"
uses: ./.github/workflows/cd-build-and-push.yml
with:
setup-qemu: false
image-name: ${{ vars.IMAGE_NAME }}
image-tag: ${{ vars.IMAGE_TAG }}
secrets:
push-image-registry-url: ${{ secrets.REGISTRY_URL }}
push-image-registry-username: ${{ secrets.REGISTRY_USERNAME }}
push-image-registry-token: ${{ secrets.REGISTRY_TOKEN }}

cd-deploy:
name: "CD: Deploy"
uses: ./.github/workflows/cd-deploy.yml
secrets: inherit
needs: [cd-build-push]
cd_build_push:
name: "Build and Push"
runs-on: ubuntu-latest

environment:
name: production

steps:
- uses: actions/checkout@v4

- uses: ladesa-ro/esteira-ci-cd/actions/build-and-push@main
with:
setup-qemu: "false"
build-image: "true"
push-image: "true"
push-image-registry-url: ${{ secrets.REGISTRY_URL }}
push-image-registry-username: ${{ secrets.REGISTRY_USERNAME }}
push-image-registry-token: ${{ secrets.REGISTRY_TOKEN }}
image-tag: ${{ vars.BUILD_IMAGE_TAG }}
image-name: ${{ vars.BUILD_IMAGE_NAME }}

cd_deploy:
name: Deploy to Cluster

runs-on: deploy
needs: [cd_build_push]

environment:
name: production
url: ${{ vars.DEPLOY_URL }}

steps:
- uses: actions/checkout@v4

- uses: ladesa-ro/esteira-ci-cd/actions/deploy-k8s-stakater-application@main
with:
helm-values: ${{ vars.DEPLOY_HELM_VALUES }}
deployment: ${{ vars.K8S_DEPLOYMENT }}
namespace: ${{ vars.K8S_NAMESPACE }}

0 comments on commit f925c99

Please sign in to comment.