Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c7eb2278b8 | |||
| cfe4990e79 | |||
| 752a08505c | |||
| f95b904776 | |||
| d229a15f12 | |||
| 84a3e410a0 |
Vendored
+4
-1
@@ -1,5 +1,8 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(name: 'VOLUME', defaultValue: 'tea', description: 'Docker volume')
|
||||
}
|
||||
stages {
|
||||
stage('Get Latest Release') {
|
||||
steps {
|
||||
@@ -19,7 +22,7 @@ pipeline {
|
||||
stage('Run') {
|
||||
steps {
|
||||
sh 'chmod +x jobs/create-db/run.sh'
|
||||
sh './jobs/create-db/run.sh'
|
||||
sh "./jobs/create-db/run.sh ${params.VOLUME}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
docker run --rm \
|
||||
--mount type=volume,source=sqlitedb,target=/program/data \
|
||||
tea-db uv run src/database.py
|
||||
--mount type=volume,source=$1,target=/program/data \
|
||||
tea-db python3 src/database.py
|
||||
Vendored
+8
-3
@@ -1,11 +1,16 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(name: 'VOLUME', defaultValue: 'tea', description: 'Docker volume')
|
||||
}
|
||||
stages {
|
||||
stage('Get Latest Release') {
|
||||
steps {
|
||||
sh 'git fetch --tags'
|
||||
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
|
||||
sh "git checkout ${latestTag}"
|
||||
script {
|
||||
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
|
||||
sh "git checkout ${latestTag}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
@@ -17,7 +22,7 @@ pipeline {
|
||||
stage('Run') {
|
||||
steps {
|
||||
sh 'chmod +x jobs/fill-db/run.sh'
|
||||
sh './jobs/fill-db/run.sh'
|
||||
sh "./jobs/fill-db/run.sh ${params.VOLUME}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
docker run --rm \
|
||||
--mount type=volume,source=sqlitedb,target=/program/data \
|
||||
tea-db uv run python -m ps_core.devdata.fill \
|
||||
--mount type=volume,source=$1,target=/program/data \
|
||||
tea-db python3 -m ps_core.devdata.fill \
|
||||
--spec-dir spec \
|
||||
--generated-dir src \
|
||||
--count 100 \
|
||||
|
||||
Vendored
+8
-3
@@ -1,11 +1,16 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(name: 'VOLUME', defaultValue: 'tea', description: 'Docker volume')
|
||||
}
|
||||
stages {
|
||||
stage('Get Latest Release') {
|
||||
steps {
|
||||
sh 'git fetch --tags'
|
||||
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
|
||||
sh "git checkout ${latestTag}"
|
||||
script {
|
||||
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
|
||||
sh "git checkout ${latestTag}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
@@ -17,7 +22,7 @@ pipeline {
|
||||
stage('Run') {
|
||||
steps {
|
||||
sh 'chmod +x jobs/validate-db/run.sh'
|
||||
sh './jobs/validate-db/run.sh'
|
||||
sh "./jobs/validate-db/run.sh ${params.VOLUME}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
docker run --rm \
|
||||
--mount type=volume,source=sqlitedb,target=/program/data \
|
||||
tea-db uv run python -m ps_core.validate_all \
|
||||
--mount type=volume,source=$1,target=/program/data \
|
||||
tea-db python3 -m ps_core.validate_all \
|
||||
--spec-dir spec \
|
||||
--generated-dir src \
|
||||
--db-url "sqlite:///data/dev.db"
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "tea-db"
|
||||
version = "0.0.3"
|
||||
version = "0.0.6"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.14"
|
||||
|
||||
Reference in New Issue
Block a user