This tool is not yet implemented.
A worked example, rendered from real sample data. Sign in to run the tool on your own input.
node:20-alpine
build
test
deploy{
"image": "node:20-alpine",
"stages": [
"build",
"test",
"deploy"
],
"variables": {
"NODE_ENV": "production"
},
"cache": {
"paths": [
"node_modules/"
]
},
"build": {
"stage": "build",
"script": [
"echo \"Running build stage\""
],
"artifacts": {
"paths": [
"dist/"
],
"expire_in": "1 week"
},
"only": [
"main"
]
},
"test": {
"stage": "test",
"script": [
"echo \"Running test stage\""
],
"artifacts": {
"paths": [
"dist/"
],
"expire_in": "1 week"
},
"only": [
"main"
]
},
"deploy": {
"stage": "deploy",
"script": [
"echo \"Running deploy stage\""
],
"artifacts": {
"paths": [
"dist/"
],
"expire_in": "1 week"
},
"only": [
"main"
]
}
}
Generate GitLab CI pipeline configurations with stages and jobs. Part of the DevTools Surf developer suite. Browse more tools in the DevOps / CI-CD collection.