Skip to content

Commit

Permalink
BC-7854 - add ansible tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Aug 16, 2024
1 parent 0b660ce commit 5e294c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
needs:
- build_and_push_docker
- branch_meta
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@BC-7854-ansible-tags
with:
branch: ${{ needs.branch_meta.outputs.branch }}
secrets:
Expand Down
12 changes: 12 additions & 0 deletions ansible/roles/schulcloud-client-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: svc.yml.j2
tags:
- service

- name: Configmap
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: configmap.yml.j2
apply: yes
tags:
- configmap

- name: Configmap File
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: client-configmap-files.yml.j2
apply: yes
tags:
- configmap

- name: Secred
kubernetes.core.k8s:
Expand All @@ -25,18 +31,24 @@
template: secret.yml.j2
apply: yes
when: ONEPASSWORD_OPERATOR is undefined or ONEPASSWORD_OPERATOR is defined and not ONEPASSWORD_OPERATOR
tags:
- 1password

- name: Secred by 1Password
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: onepassword.yml.j2
when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool
tags:
- 1password


- name: Deployment
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: deployment.yml.j2
tags:
- deployment

0 comments on commit 5e294c2

Please sign in to comment.