ci: add workflow for build and deploy
Some checks failed
CI/CD Pipeline / build (push) Failing after 37s
CI/CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
Ivan Filipovic
2026-04-20 20:55:45 +02:00
parent 2b569f38c5
commit 542f00eb0c

View File

@@ -13,7 +13,7 @@ jobs:
# ── JOB 1: Build i Push Docker image ────────────────── # ── JOB 1: Build i Push Docker image ──────────────────
build: build:
runs-on: self-hosted runs-on: ubuntu-latest
steps: steps:
- name: Checkout koda - name: Checkout koda
@@ -40,8 +40,8 @@ jobs:
path: tag.txt path: tag.txt
# ── JOB 2: Deploy na k3s ─────────────────────────────── # ── JOB 2: Deploy na k3s ───────────────────────────────
deploy: deploy:
needs: buil needs: build
runs-on: self-hosted runs-on: ubuntu-latest
steps: steps:
- name: Checkout koda - name: Checkout koda
@@ -68,3 +68,4 @@ jobs:
kubectl apply -f k8s/ kubectl apply -f k8s/
kubectl rollout status deployment/hello-cicd \ kubectl rollout status deployment/hello-cicd \
-n student-${{ github.actor }} --timeout=120s -n student-${{ github.actor }} --timeout=120s