Skip to content
Snippets Groups Projects
Commit 6a252fe1 authored by Jakob Probst's avatar Jakob Probst
Browse files

chore: use the new templates and utilities components

parent 63dfe294
No related branches found
No related tags found
No related merge requests found
Pipeline #221381 passed
...@@ -6,10 +6,12 @@ variables: ...@@ -6,10 +6,12 @@ variables:
BBBATSCALE_SUPPORT_NOTIFY_IMAGE: $CI_REGISTRY_IMAGE/bbbatscale-support-notify BBBATSCALE_SUPPORT_NOTIFY_IMAGE: $CI_REGISTRY_IMAGE/bbbatscale-support-notify
include: include:
- project: its/infra-utils - component: $CI_SERVER_FQDN/its/templates-and-utilities/gitlab-ci-components/manage-namespaces-and-service-accounts/download-kubeconfig@1
file: gitlab/ci/templates/get-openshift-kubeconfig.gitlab-ci.yml inputs:
- project: its/infra-utils project-full-path: its/openshift
file: gitlab/ci/templates/install-helmfile.gitlab-ci.yml namespace: rooms
service-account: bbbatscale-support-notify-admin
- component: $CI_SERVER_FQDN/its/templates-and-utilities/gitlab-ci-components/install-helmfile/install-helmfile@1
build: build:
stage: build stage: build
...@@ -33,12 +35,9 @@ deploy: ...@@ -33,12 +35,9 @@ deploy:
name: alpine name: alpine
rules: rules:
- when: manual - when: manual
variables:
NAMESPACE: rooms
SERVICE_ACCOUNT: bbbatscale-support-notify-admin
before_script: before_script:
- !reference [ .get openshift kubeconfig - alpine, before_script ] - !reference [ .download-kubeconfig-alpine , before_script ]
- !reference [ .install helmfile - alpine, before_script ] - !reference [ .install-helmfile-alpine, before_script ]
script: script:
- helmfile sync --file "$CI_PROJECT_DIR/helmfile.yaml.gotmpl" - helmfile sync --file "$CI_PROJECT_DIR/helmfile.yaml.gotmpl"
needs: needs:
......
...@@ -6,6 +6,6 @@ type: application ...@@ -6,6 +6,6 @@ type: application
version: 0.0.0 version: 0.0.0
dependencies: dependencies:
- name: its-infra-utils - name: docker-config
version: 0.0.0 version: ^2.0.0
repository: git+https://code.fbi.h-da.de/its/infra-utils.git@charts?ref=main repository: https://code.fbi.h-da.de/api/v4/projects/36536/packages/helm/stable
...@@ -7,5 +7,5 @@ metadata: ...@@ -7,5 +7,5 @@ metadata:
{{- include "bbbatscale-support-notify.labels" . | nindent 4 }} {{- include "bbbatscale-support-notify.labels" . | nindent 4 }}
type: kubernetes.io/dockerconfigjson type: kubernetes.io/dockerconfigjson
data: data:
.dockerconfigjson: {{ include "its-infra-utils.dockerConfig" .Values.imagePullConfig | b64enc }} .dockerconfigjson: {{ include "de.h-da.fbi.docker-config.dockerConfig" .Values.imagePullConfig | b64enc }}
{{- end }} {{- end }}
repositories: repositories:
- name: its-infra-utils - name: docker-config
url: git+https://code.fbi.h-da.de/its/infra-utils.git@charts?ref=main url: https://code.fbi.h-da.de/api/v4/projects/36536/packages/helm/stable
username: gitlab-ci-token
password: {{ requiredEnv "CI_JOB_TOKEN" | quote }}
missingFileHandler: Error missingFileHandler: Error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment