-
Notifications
You must be signed in to change notification settings - Fork 50
43 lines (38 loc) · 1.03 KB
/
cd-frontend.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
name: cd/frontend
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "tavla/**"
jobs:
docker-push:
uses: entur/gha-docker/.github/workflows/[email protected]
with:
environment: prd
context: tavla
image_name: tavla/frontend
helm-deploy-dev:
needs: [docker-push]
uses: entur/gha-helm/.github/workflows/[email protected]
with:
environment: dev
chart: tavla/helm/tavla
image: ${{ needs.docker-push.outputs.image_name }}:${{ needs.docker-push.outputs.image_tag}}
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/[email protected]
with:
environment: prd
chart: tavla/helm/tavla
image: ${{ needs.docker-push.outputs.image_name }}:${{ needs.docker-push.outputs.image_tag}}