Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI jobs needs and helms charts #198

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

test-e2e:
name: Run E2E tests
needs: [tag-pr, build-backend]
needs: [build-backend, build-frontend]
uses: ./.github/workflows/test-on-kube.yml
secrets:
API_OVH_TOKEN: ${{ secrets.API_OVH_TOKEN }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test-on-kube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:
- name: Set up ingress controller
run: |
helm repo add traefik https://traefik.github.io/charts && helm repo update
helm install --namespace ingress-traefik --create-namespace traefik traefik/traefik --values ./infra/kube/kind/traefik-values.yml
helm upgrade \
--install \
--wait \
--namespace traefik \
--create-namespace \
--values ./infra/kube/kind/traefik-values.yml \
traefik traefik/traefik

- name: Add hosts to /etc/hosts
run: |
Expand All @@ -56,7 +62,6 @@ jobs:
--set-string backend.secret.values.AWS_SECRET_ACCESS_KEY="${{ secrets.AWS_SECRET_ACCESS_KEY }}" \
--set-string backend.secret.values.X_OVH_TOKEN="${{ secrets.X_OVH_TOKEN }}" \
--set-string backend.secret.values.API_OVH_TOKEN="${{ secrets.API_OVH_TOKEN }}"
for i in $(kubectl get deploy -o name); do kubectl rollout status $i -w --timeout=130s; done

- name: Display pod logs on failure
if: failure() && steps.tests.outcome == 'failure'
Expand Down
4 changes: 0 additions & 4 deletions infra/kube/helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ spec:
ports:
- port: {{ .Values.frontend.service.port }}
targetPort: {{ .Values.frontend.service.containerPort }}
protocol: TCP
name: http
selector:
{{- include "basegun.FrontSelectorLabels" . | nindent 4 }}
---
Expand All @@ -25,7 +23,5 @@ spec:
ports:
- port: {{ .Values.backend.service.port }}
targetPort: {{ .Values.backend.service.containerPort }}
protocol: TCP
name: http
selector:
{{- include "basegun.BackSelectorLabels" . | nindent 4 }}
8 changes: 4 additions & 4 deletions infra/kube/helm/values-dso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ backend:
repository: harbor.apps.c6.numerique-interieur.com/mi-basegun-test/basegun-backend
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: feature-adapt-infra-for-dso-env
tag: develop
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand All @@ -49,7 +49,7 @@ backend:
logs:
repository: ghcr.io/datalab-mi/basegun/filebeat-rootless
tag: 6.5.4
pullPolicy: IfNotPresent
pullPolicy: Always
service:
type: ClusterIP
port: 5000
Expand Down Expand Up @@ -86,9 +86,9 @@ frontend:
replicaCount: 1
image:
repository: harbor.apps.c6.numerique-interieur.com/mi-basegun-test/basegun-frontend
pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: feature-adapt-infra-for-dso-env
tag: develop
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand Down
Loading