|
| 1 | +kind: template |
| 2 | +load: deploythatapp.jsonnet |
| 3 | +data: |
| 4 | + projectName: ${DRONE_REPO} |
| 5 | + gitSshKey: default |
| 6 | + ciImageRegistry: "registry.lokalhost.net" |
| 7 | + domains: >- |
| 8 | + ["lokalhost.net", "fresh2.dev"] |
| 9 | + domainTriggers: >- |
| 10 | + { |
| 11 | + "lokalhost.net": { |
| 12 | + "branch": ["main", "master"], |
| 13 | + "event": ["push", "custom"] |
| 14 | + }, |
| 15 | + "fresh2.dev": { |
| 16 | + "event": ["tag"] |
| 17 | + } |
| 18 | + } |
| 19 | + imageTags: "" |
| 20 | + useDinD: false |
| 21 | + publishDockerHub: false |
| 22 | + deployStack: true |
| 23 | + deployCommands: >- |
| 24 | + {} |
| 25 | + secrets: >- |
| 26 | + [] |
| 27 | + secretFiles: >- |
| 28 | + {} |
| 29 | + volumes: >- |
| 30 | + [] |
| 31 | + domainVars: >- |
| 32 | + { |
| 33 | + "lokalhost.net": { |
| 34 | + "PYPI_CREDS": {"from_secret": "lokalhost.net_pypi-creds"} |
| 35 | + } |
| 36 | + } |
| 37 | + beforeSteps: >- |
| 38 | + [ |
| 39 | + { |
| 40 | + "name": "run-tests", |
| 41 | + "image": "registry.lokalhost.net/python:3.9-buster", |
| 42 | + "commands": ["make test", "make build-docs"], |
| 43 | + "when": { |
| 44 | + "event": ["push", "custom", "tag"] |
| 45 | + } |
| 46 | + } |
| 47 | + ] |
| 48 | + afterSteps: >- |
| 49 | + [ |
| 50 | + { |
| 51 | + "name": "publish-testpypi", |
| 52 | + "image": "registry.lokalhost.net/python:3.9-buster", |
| 53 | + "commands": [ |
| 54 | + "echo -n \"$PYPI_CREDS\" > ~/.pypirc", |
| 55 | + "make publish" |
| 56 | + ], |
| 57 | + "when": { |
| 58 | + "branch": ["main", "master"], |
| 59 | + "event": ["push", "custom"] |
| 60 | + } |
| 61 | + }, |
| 62 | + { |
| 63 | + "name": "publish-pypi", |
| 64 | + "image": "registry.lokalhost.net/python:3.9-buster", |
| 65 | + "commands": [ |
| 66 | + "echo -n \"$PYPI_CREDS\" > ~/.pypirc", |
| 67 | + "VERSION=${DRONE_TAG} make publish-prod" |
| 68 | + ], |
| 69 | + "when": { |
| 70 | + "event": ["tag"] |
| 71 | + } |
| 72 | + } |
| 73 | + ] |
| 74 | + extraObjects: >- |
| 75 | + [] |
0 commit comments