fix: koristenje v3 akcija i ispravan deploy
Some checks failed
CI/CD Pipeline / build (push) Successful in 1m40s
CI/CD Pipeline / deploy (push) Failing after 1m0s

This commit is contained in:
2026-05-02 20:45:37 +02:00
parent 3da8c0548a
commit 90247939dc

View File

@@ -9,12 +9,11 @@ env:
IMAGE: git.fpmoz.sum.ba/${{ github.repository }}
jobs:
# ── JOB 1: Build ──────────────────────────────────────
build:
runs-on: ubuntu-latest
steps:
- name: Checkout koda
uses: actions/checkout@v3 # Vraćeno na v3
uses: actions/checkout@v3
- name: Login u Gitea registry
run: |
@@ -31,21 +30,20 @@ jobs:
echo $TAG > tag.txt
- name: Spremi image tag
uses: actions/upload-artifact@v3 # OVO JE BITNO: v3 umjesto v4
uses: actions/upload-artifact@v3
with:
name: image-tag
path: tag.txt
# ── JOB 2: Deploy ─────────────────────────────────────
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout koda
uses: actions/checkout@v3 # Vraćeno na v3
uses: actions/checkout@v3
- name: Preuzmi image tag
uses: actions/download-artifact@v3 # OVO JE BITNO: v3 umjesto v4
uses: actions/download-artifact@v3
with:
name: image-tag
@@ -67,9 +65,6 @@ jobs:
- name: Deploy na k3s
run: |
# Koristimo eksplicitnu putanju i gasimo validaciju
kubectl --kubeconfig=$HOME/.kube/config apply -f k8s/ --validate=false
kubectl --kubeconfig=$HOME/.kube/config rollout status deployment/hello-cicd -n student-sz11zs --timeout=120s
# Provjera statusa za tvoj namespace sz11zs
kubectl --kubeconfig=$HOME/.kube/config rollout status deployment/hello-cicd \
-n student-sz11zs --timeout=120s