Hello.
I have one common drone config that includes server and client configs:
---
include: server/.drone.yml
---
include: client/.drone.yml
In server config, I’d like to run all steps from server
directory instead of cd server
at each step
I have:
kind: pipeline
type: docker
name: backend
steps:
- name: modules
image: golang:1.17
commands:
- cd server
- go mod download
- name: lint
image: golangci/golangci-lint:latest
commands:
- cd server
- echo Linter is running
- golangci-lint run -c ./golangci.yml ./...
I’d like to have:
kind: pipeline
type: docker
name: backend
steps:
- name: modules
image: golang:1.17
commands:
- go mod download
- name: lint
image: golangci/golangci-lint:latest
commands:
- echo Linter is running
- golangci-lint run -c ./golangci.yml ./...
Is there any possibility for that?