From 1111ba0777dc829afe7f964f953cc35cea154109 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:11:25 +0200 Subject: [PATCH 1/2] BC-7854 - add ansible tags --- .github/workflows/push.yml | 2 +- ansible/roles/schulcloud-client-core/tasks/main.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4047904808..7a3dc1e760 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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: diff --git a/ansible/roles/schulcloud-client-core/tasks/main.yml b/ansible/roles/schulcloud-client-core/tasks/main.yml index 33e5ef46b8..98ac4c8bf8 100644 --- a/ansible/roles/schulcloud-client-core/tasks/main.yml +++ b/ansible/roles/schulcloud-client-core/tasks/main.yml @@ -3,6 +3,8 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: svc.yml.j2 + tags: + - service - name: Configmap kubernetes.core.k8s: @@ -10,6 +12,8 @@ namespace: "{{ NAMESPACE }}" template: configmap.yml.j2 apply: yes + tags: + - configmap - name: Configmap File kubernetes.core.k8s: @@ -17,6 +21,8 @@ namespace: "{{ NAMESPACE }}" template: client-configmap-files.yml.j2 apply: yes + tags: + - configmap - name: Secred kubernetes.core.k8s: @@ -25,6 +31,8 @@ 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: @@ -32,6 +40,8 @@ namespace: "{{ NAMESPACE }}" template: onepassword.yml.j2 when: ONEPASSWORD_OPERATOR is defined and ONEPASSWORD_OPERATOR|bool + tags: + - 1password - name: Deployment @@ -39,4 +49,6 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: deployment.yml.j2 + tags: + - deployment From e63e49c93111f2241e905b47f2681e1d65166b36 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:12:32 +0200 Subject: [PATCH 2/2] BC-7854 - push workflow back to main --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7a3dc1e760..4047904808 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -109,7 +109,7 @@ jobs: needs: - build_and_push_docker - branch_meta - uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@BC-7854-ansible-tags + uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main with: branch: ${{ needs.branch_meta.outputs.branch }} secrets: