This commit is contained in:
parent
01fb136fbf
commit
2048aef401
26
.drone.yml
26
.drone.yml
@ -3,7 +3,27 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: say-hello
|
- name: build
|
||||||
image: alpine
|
image: node:14-alpine # Używanie obrazu Node.js 14 na bazie Alpine
|
||||||
commands:
|
commands:
|
||||||
- echo "Hello, World!"
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user