From 2048aef401c3b435af010b937b0432733a307ec1 Mon Sep 17 00:00:00 2001 From: first_admin Date: Sat, 31 Aug 2024 08:08:00 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4814214..c56dd7a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,27 @@ type: docker name: default steps: -- name: say-hello - image: alpine - commands: - - echo "Hello, World!" + - name: build + image: node:14-alpine # Używanie obrazu Node.js 14 na bazie Alpine + commands: + - echo "Building the application..." + - npm install + - npm run build + + - name: test + image: python:3.9 # Używanie obrazu Python 3.9 + depends_on: + - build + commands: + - echo "Running tests..." + - pip install -r requirements.txt + - pytest + + - name: deploy + image: ubuntu:20.04 # Używanie obrazu Ubuntu 20.04 + depends_on: + - test + commands: + - echo "Deploying the application..." + - apt-get update -y + - apt-get install -y curl