fix: repair docker login syntax
Some checks failed
CI/CD Pipeline / build (push) Successful in 1m29s
CI/CD Pipeline / deploy (push) Failing after 52s

This commit is contained in:
Ivan Filipovic
2026-04-20 21:40:09 +02:00
parent 873a9f1dd1
commit a975579ec4

View File

@@ -1,4 +1,3 @@
# .gitea/workflows/ci.yml
name: CI/CD Pipeline name: CI/CD Pipeline
on: on:
@@ -15,7 +14,6 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout koda - name: Checkout koda
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -35,12 +33,12 @@ jobs:
with: with:
name: image-tag name: image-tag
path: tag.txt path: tag.txt
# ── JOB 2: Deploy na k3s ─────────────────────────────── # ── JOB 2: Deploy na k3s ───────────────────────────────
deploy: deploy:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout koda - name: Checkout koda
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -51,9 +49,9 @@ jobs:
- name: Postavi kubeconfig - name: Postavi kubeconfig
run: | run: |
mkdir -p ~/.kube mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $HOME/.kube/config
chmod 600 ~/.kube/config chmod 600 $HOME/.kube/config
- name: Update image tag u manifestu - name: Update image tag u manifestu
run: | run: |
@@ -63,6 +61,4 @@ jobs:
- name: Deploy na k3s - name: Deploy na k3s
run: | run: |
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