-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (47 loc) · 1.69 KB
/
Copy pathdeploy.yaml
File metadata and controls
60 lines (47 loc) · 1.69 KB
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
name: Build & Deploy user-service
on:
push:
branches: [dev, main]
permissions:
contents: read
concurrency:
group: user-service-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: cloudshopt/infrastructure/.github/workflows/build-image.yaml@main
with:
prod_branch: main
image_repository: timib22/cloudshopt-users-php
dockerfile: .docker/php/prod.Dockerfile
docker_context: .
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
deploy:
needs: build
uses: cloudshopt/infrastructure/.github/workflows/deploy-helm.yaml@main
with:
prod_branch: main
infra_repo: cloudshopt/infrastructure
infra_ref: main
helm_chart_path: helm/user-service
values_prod: helm/user-service/values.yaml
values_dev: helm/user-service/values-dev.yaml
namespace_prod: cloudshopt
namespace_dev: cloudshopt-dev
release_prod: user-service
release_dev: user-service-dev
image_repository: timib22/cloudshopt-users-php
image_tag: ${{ needs.build.outputs.image_tag }}
health_prod: http://app.timotejblazic.eu/api/users/info
health_dev: http://app-dev.timotejblazic.eu/api/users/info
k8s_secret_name: user-service-secrets
secrets:
KUBECONFIG_B64: ${{ secrets.KUBECONFIG_B64 }}
DB_PASSWORD_PROD: ${{ secrets.PROD_DB_PASSWORD }}
REDIS_PASSWORD_PROD: ${{ secrets.PROD_REDIS_PASSWORD }}
JWT_SECRET_PROD: ${{ secrets.PROD_JWT_SECRET }}
DB_PASSWORD_DEV: ${{ secrets.DEV_DB_PASSWORD }}
REDIS_PASSWORD_DEV: ${{ secrets.DEV_REDIS_PASSWORD }}
JWT_SECRET_DEV: ${{ secrets.DEV_JWT_SECRET }}