fix: repair docker login syntax
This commit is contained in:
@@ -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
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user