-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.73 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Continuos Deployment - Web
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
cd_build_push:
name: 'Build and Push'
runs-on: ubuntu-latest
environment:
name: development
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-build
cancel-in-progress: false
steps:
- uses: ladesa-ro/esteira-ci-cd/actions/prepare-images-builder@main
with:
setup-qemu: 'false'
push-image: 'true'
push-image-registry-url: ${{ secrets.REGISTRY_URL }}
push-image-registry-username: ${{ secrets.REGISTRY_USERNAME }}
push-image-registry-token: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push @ladesa-ro/web.service
uses: ladesa-ro/esteira-ci-cd/actions/image-build-push@main
with:
image-tag: ${{ vars.IMAGE_TAG }}
image-name: ${{ vars.IMAGE_NAME }}
build-image: 'true'
build-target-tag: 'web-runtime'
push-image: 'true'
push-image-registry-url: ${{ secrets.REGISTRY_URL }}
cd_deploy:
name: Deploy to Cluster @ladesa-ro/web.service
runs-on: deploy
needs: [cd_build_push]
environment:
name: development
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 }}
helm-release-name: ${{ vars.K8S_DEPLOYMENT }}
helm-release-extra-options: '--values=./.devops/web-service/values.common.yml'