Merge pull request 'Fix the pipeline' (#15) from cicd into master

Reviewed-on: #15
This commit is contained in:
dvirlabs 2025-06-04 09:17:37 +00:00
commit c1f09cc689
3 changed files with 38 additions and 25 deletions

View File

@ -14,29 +14,42 @@ steps:
- echo "TAGS=latest,$TAG_DATE-$SHORT_SHA" > .tags.env - echo "TAGS=latest,$TAG_DATE-$SHORT_SHA" > .tags.env
- name: build-frontend - name: build-frontend
image: woodpeckerci/plugin-docker-buildx image: gcr.io/kaniko-project/executor:latest
privileged: true environment:
settings: DOCKER_CONFIG: /kaniko/.docker/
repo: harbor.dvirlabs.com/my-apps/navix-frontend volumes:
tag_file: .tags.env - name: docker-config
dockerfile: frontend/Dockerfile path: /kaniko/.docker/
context: frontend commands:
registry: harbor.dvirlabs.com - |
username: for TAG in $(cut -d= -f2 .tags.env | tr ',' '\n'); do
from_secret: harbor_user /kaniko/executor \
password: --dockerfile=frontend/Dockerfile \
from_secret: harbor_password --context=frontend \
--destination=harbor.dvirlabs.com/my-apps/navix-frontend:$TAG \
--insecure \
--skip-tls-verify
done
- name: build-backend - name: build-backend
image: woodpeckerci/plugin-docker-buildx image: gcr.io/kaniko-project/executor:latest
privileged: true environment:
settings: DOCKER_CONFIG: /kaniko/.docker/
repo: harbor.dvirlabs.com/my-apps/navix-backend volumes:
tag_file: .tags.env - name: docker-config
dockerfile: backend/Dockerfile path: /kaniko/.docker/
context: backend commands:
registry: harbor.dvirlabs.com - |
username: for TAG in $(cut -d= -f2 .tags.env | tr ',' '\n'); do
from_secret: harbor_user /kaniko/executor \
password: --dockerfile=backend/Dockerfile \
from_secret: harbor_password --context=backend \
--destination=harbor.dvirlabs.com/my-apps/navix-backend:$TAG \
--insecure \
--skip-tls-verify
done
volumes:
- name: docker-config
secret:
secretName: kaniko-docker-config

View File

@ -34,4 +34,4 @@ sections:
icon: vault.svg icon: vault.svg
name: Vault name: Vault
url: https://vault.dvirlabs.com url: https://vault.dvirlabs.com
name: Devtools name: Dev-tools