Skip to content

Commit a830ab6

Browse files
committed
fix: Upgrade dependencies workflow
1 parent c656f86 commit a830ab6

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed
Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,44 @@
1-
name: Deploy Dependencies on k8s
1+
name: Deploy Dependencies
2+
run-name: Deploy Dependencies on ${{ inputs.environment }}
23
on:
3-
workflow_dispatch:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: "Target environment"
8+
required: true
9+
default: "e2e"
10+
type: choice
11+
options:
12+
- "e2e"
413
jobs:
514
deploy:
15+
environment: ${{ inputs.environment }}
16+
runs-on:
17+
- self-hosted
18+
- k8s
19+
- ${{ inputs.environment }}
620
env:
7-
ENV: e2e
8-
runs-on: [self-hosted, k8s, e2e]
21+
ENV: ${{ inputs.environment }}
22+
GITHUB_ACTOR: ${{ github.actor }}
23+
SENDER_EMAIL_ADDRESS: ${{ secrets.SENDER_EMAIL_ADDRESS }}
24+
ALERT_EMAIL: ${{ secrets.ALERT_EMAIL }}
925
steps:
10-
- name: Install traefik
26+
- name: Checkout repository
27+
uses: actions/checkout@v5
28+
- name: Install Traefik
1129
run: |
1230
kubectl scale deployment traefik --replicas=0 --namespace traefik || true
1331
helm upgrade --install traefik oci://ghcr.io/traefik/helm/traefik \
1432
--namespace traefik \
1533
--create-namespace \
1634
-f https://raw.githubusercontent.com/opencrvs/e2e/${{ github.ref_name }}/k8s-env/traefik/values.yaml
1735
kubectl scale deployment traefik --replicas=1 --namespace traefik
18-
- name: Deploy with Helm
36+
- name: Install OpenCRVS dependencies
37+
id: deploy
1938
run: |
2039
helm upgrade --install opencrvs-deps oci://ghcr.io/opencrvs/opencrvs-dependencies-chart \
2140
--namespace "opencrvs-deps-e2e" \
22-
--timeout 15m \
2341
-f https://raw.githubusercontent.com/opencrvs/e2e/${{ github.ref_name }}/k8s-env/dependencies/values.yaml \
2442
--create-namespace \
43+
--timeout 15m \
2544
--atomic

0 commit comments

Comments
 (0)