From f87719e03b5d76c6ff24b191c82c660ebbe1ce9f Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Tue, 5 Aug 2025 03:39:07 +0300 Subject: [PATCH] Test pipeline --- .woodpecker.yaml | 5 +++++ backend/Dockerfile | 1 + 2 files changed, 6 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 2a80bcb..b29e387 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -85,6 +85,10 @@ steps: - apk add --no-cache git yq - git config --global user.name "woodpecker-bot" - git config --global user.email "ci@dvirlabs.com" + - | + if [ ! -d "my-apps" ]; then + git clone "https://${GIT_USERNAME}:${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/my-apps.git" + fi - cd my-apps - | TAG="${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}" @@ -94,6 +98,7 @@ steps: git commit -m "backend: update tag to $TAG" || echo "No changes" git push origin HEAD + trigger-gitops-via-push: name: Trigger apps-gitops via Git push image: alpine/git diff --git a/backend/Dockerfile b/backend/Dockerfile index 273c640..5930ae8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,3 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] EXPOSE 8000 +