From cc1a3c5959d60fe8f0df67c6a7a234d763451c72 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:30:29 +0200 Subject: [PATCH 1/2] BC-7854 - add ansible tags --- .github/workflows/push.yml | 2 +- ansible/roles/tldraw-client-core/tasks/main.yml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 0726c2cf..2e47ba53 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -77,7 +77,7 @@ jobs: needs: - build_and_push - 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/tldraw-client-core/tasks/main.yml b/ansible/roles/tldraw-client-core/tasks/main.yml index 8e1de44d..bd3e9fd0 100644 --- a/ansible/roles/tldraw-client-core/tasks/main.yml +++ b/ansible/roles/tldraw-client-core/tasks/main.yml @@ -4,6 +4,8 @@ namespace: "{{ NAMESPACE }}" template: tldraw-client-svc.yml.j2 when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - service - name: tldraw client configmap kubernetes.core.k8s: @@ -12,6 +14,8 @@ template: tldraw-client-configmap.yml.j2 apply: yes when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - configmap - name: tldraw client deployment kubernetes.core.k8s: @@ -19,6 +23,8 @@ namespace: "{{ NAMESPACE }}" template: tldraw-client-deployment.yml.j2 when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - deployment - name: tldraw client ingress kubernetes.core.k8s: @@ -26,4 +32,6 @@ namespace: "{{ NAMESPACE }}" template: tldraw-client-ingress.yml.j2 apply: yes - when: WITH_TLDRAW is defined and WITH_TLDRAW|bool \ No newline at end of file + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool + tags: + - ingress \ No newline at end of file From 812dfdc3e25358e130daddfdc77a80f0cb31ea96 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:13:52 +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 2e47ba53..0726c2cf 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -77,7 +77,7 @@ jobs: needs: - build_and_push - 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: