diff --git a/.github/workflows/HugoBuildAndDeploy.yaml b/.github/workflows/HugoBuildAndDeploy.yaml index 60b49dfa..49632b16 100644 --- a/.github/workflows/HugoBuildAndDeploy.yaml +++ b/.github/workflows/HugoBuildAndDeploy.yaml @@ -97,5 +97,12 @@ jobs: # Checkout the repository - uses: actions/checkout@v3 + - name: Find and Replace + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "{{RUN_NUMBER}}" + replace: ${{ github.run_number }} + regex: false + # Deploy Kubernetes YAML - run: kubectl apply -f ./Kubernetes/Fachinformatiker-Prüfungsvorbereitung.yaml --kubeconfig ${{ steps.write_file.outputs.filePath }} diff --git "a/deployment/Fachinformatiker-Pr\303\274fungsvorbereitung.yaml" "b/deployment/Fachinformatiker-Pr\303\274fungsvorbereitung.yaml" index 584a4f2e..64ff538e 100644 --- "a/deployment/Fachinformatiker-Pr\303\274fungsvorbereitung.yaml" +++ "b/deployment/Fachinformatiker-Pr\303\274fungsvorbereitung.yaml" @@ -13,7 +13,7 @@ spec: spec: containers: - name: fi-pv - image: lnadev/fi-pv:86 + image: lnadev/fi-pv:{{RUN_NUMBER}} imagePullPolicy: Always resources: limits: