fix: 8
Some checks failed
CI/CD Pipeline / build (push) Successful in 1m26s
CI/CD Pipeline / deploy (push) Failing after 51s

This commit is contained in:
2026-04-16 18:50:09 +02:00
parent 73a8a780bf
commit 8c54cef734

View File

@@ -7,12 +7,8 @@ on:
env:
REGISTRY: git.fpmoz.sum.ba
IMAGE: git.fpmoz.sum.ba/${{ github.repository }}
IMAGE: git.fpmoz.sum.ba/marijanela218/helloo-cicdd
- name: Set lowercase image
run: |
IMAGE_LC=$(echo "$IMAGE" | tr '[:upper:]' '[:lower:]')
echo "IMAGE_LC=$IMAGE_LC" >> $GITHUB_ENV
jobs:
# ── JOB 1: Build i Push Docker image ──────────────────
@@ -31,9 +27,9 @@ jobs:
- name: Build i Push image
run: |
TAG=${{ github.sha }}
docker build -t $IMAGE_LC:$TAG -t $IMAGE:latest .
docker push $IMAGE_LC:$TAG
docker push $IMAGE_LC:latest
docker build -t $IMAGE:$TAG -t $IMAGE:latest .
docker push $IMAGE:$TAG
docker push $IMAGE:latest
echo $TAG > tag.txt
- name: Spremi image tag
@@ -70,7 +66,7 @@ jobs:
- name: Update image tag u manifestu
run: |
TAG=$(cat tag.txt)
sed -i "s|image:.*|image: $IMAGE_LC:$TAG|" k8s/deployment.yaml
sed -i "s|image:.*|image: $IMAGE:$TAG|" k8s/deployment.yaml
- name: Deploy na k3s
run: |