-
Notifications
You must be signed in to change notification settings - Fork 52
45 lines (40 loc) · 1.1 KB
/
cd-backend.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
name: cd/backend
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "backend/**"
jobs:
docker-push:
uses: entur/gha-docker/.github/workflows/push.yml@v1.2.3
with:
environment: prd
context: backend
image_name: tavla/backend
helm-deploy-dev:
needs: [docker-push]
uses: entur/gha-helm/.github/workflows/deploy.yml@v1.0.4
with:
environment: dev
chart: backend/helm/backend
image: ${{ needs.docker-push.outputs.image_name }}:${{ needs.docker-push.outputs.image_tag}}
release_name: backend
approval-step:
runs-on: ubuntu-24.04
needs: [helm-deploy-dev]
environment: apr
steps:
- name: Approval step
id: approval
shell: bash
run: echo "Approve the deployment to prod"
helm-deploy-prd:
needs: [docker-push, approval-step]
uses: entur/gha-helm/.github/workflows/deploy.yml@v1.0.4
with:
environment: prd
chart: backend/helm/backend
image: ${{ needs.docker-push.outputs.image_name }}:${{ needs.docker-push.outputs.image_tag}}
release_name: backend