Movendo o step customizado para definitions
This commit is contained in:
parent
1be54a60a3
commit
7bbc76f445
1 changed files with 13 additions and 12 deletions
|
@ -1,17 +1,18 @@
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
pipelines:
|
definitions:
|
||||||
custom:
|
steps:
|
||||||
- step: &build-and-test
|
- step: &build-and-test
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
caches:
|
caches:
|
||||||
- node
|
- node
|
||||||
script:
|
script:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn build
|
- yarn build
|
||||||
- mkdir dist/src
|
- mkdir dist/src
|
||||||
- cp package.json dist/
|
- cp package.json dist/
|
||||||
artifacts:
|
artifacts:
|
||||||
- dist
|
- dist
|
||||||
|
pipelines:
|
||||||
branches:
|
branches:
|
||||||
default:
|
default:
|
||||||
<<: *build-and-test
|
<<: *build-and-test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue