fix: repair docker login syntax
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# .gitea/workflows/ci.yml
|
||||
name: CI/CD Pipeline
|
||||
|
||||
on:
|
||||
@@ -15,7 +14,6 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Checkout koda
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -35,12 +33,12 @@ jobs:
|
||||
with:
|
||||
name: image-tag
|
||||
path: tag.txt
|
||||
|
||||
# ── JOB 2: Deploy na k3s ───────────────────────────────
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Checkout koda
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -51,9 +49,9 @@ jobs:
|
||||
|
||||
- name: Postavi kubeconfig
|
||||
run: |
|
||||
mkdir -p ~/.kube
|
||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config
|
||||
chmod 600 ~/.kube/config
|
||||
mkdir -p $HOME/.kube
|
||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $HOME/.kube/config
|
||||
chmod 600 $HOME/.kube/config
|
||||
|
||||
- name: Update image tag u manifestu
|
||||
run: |
|
||||
@@ -63,6 +61,4 @@ jobs:
|
||||
- name: Deploy na k3s
|
||||
run: |
|
||||
kubectl apply -f k8s/
|
||||
kubectl rollout status deployment/hello-cicd \
|
||||
-n student-${{ github.actor }} --timeout=120s
|
||||
|
||||
kubectl rollout status deployment/hello-cicd -n student-${{ github.actor }} --timeout=120s
|
||||
Reference in New Issue
Block a user