From 61e8bfb29225b28cd99290a3b587c667a566ec6a Mon Sep 17 00:00:00 2001 From: Piasecki-grid Date: Thu, 27 Mar 2025 20:31:05 +0100 Subject: [PATCH] making job dependant to the build one --- .github/workflows/maven-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 4a8948311..9d48bbc50 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -69,6 +69,7 @@ jobs: kubectl get nodes deploy: + needs: build runs-on: ubuntu-latest steps: - name: Automatic deployment @@ -76,6 +77,7 @@ jobs: git config --global user.name 'Kacper Piasecki' git config --global user.email 'k.r.piasecki2@gmail.com' git config --unset-all http.https://github.com/.extraheader + rm -rf .git git clone "https://x-access-token:${{ secrets.K8S_GITHUB_TOKEN }}@github.com/Piasecki-grid/grid-capstone-k8s-manifests.git" cd grid-capstone-k8s-manifests sed -i 's|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:[0-9a-f]\{40\}|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}|g' deployment.yml