Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f3ac85cfb4 | |||
| 4ecd29996e | |||
| 9095cdf4ed | |||
| 305602644c | |||
| a240dd4b22 | |||
| 7a1dda51a4 | |||
| 001b43c74c |
+9
-4
@@ -47,16 +47,21 @@ steps:
|
|||||||
image: alpine:3.20
|
image: alpine:3.20
|
||||||
environment:
|
environment:
|
||||||
GITEA_USERNAME:
|
GITEA_USERNAME:
|
||||||
from_secret: gitea_username
|
from_secret: gitea_git_username
|
||||||
GITEA_PASSWORD:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_password
|
from_secret: gitea_git_token
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git sed
|
- apk add --no-cache git sed
|
||||||
|
- test -n "$GITEA_USERNAME"
|
||||||
|
- test -n "$GITEA_TOKEN"
|
||||||
- git clone https://gitea.mnky-code.de/mnky/k8s-manifests.git
|
- git clone https://gitea.mnky-code.de/mnky/k8s-manifests.git
|
||||||
- cd k8s-manifests
|
- cd k8s-manifests
|
||||||
|
- git remote set-url origin "https://${GITEA_USERNAME}:${GITEA_TOKEN}@gitea.mnky-code.de/mnky/k8s-manifests.git"
|
||||||
|
- git ls-remote origin
|
||||||
|
- sleep 600
|
||||||
- 'sed -i "s|image: gitea.mnky-code.de/mnky/ngrx-playground:.*|image: gitea.mnky-code.de/mnky/ngrx-playground:${DRONE_COMMIT_SHA}|" ngrx-playground/deployment.yaml'
|
- 'sed -i "s|image: gitea.mnky-code.de/mnky/ngrx-playground:.*|image: gitea.mnky-code.de/mnky/ngrx-playground:${DRONE_COMMIT_SHA}|" ngrx-playground/deployment.yaml'
|
||||||
- git config user.name "drone"
|
- git config user.name "drone"
|
||||||
- git config user.email "drone@mnky-code.de"
|
- git config user.email "drone@mnky-code.de"
|
||||||
- git add ngrx-playground/deployment.yaml
|
- git add ngrx-playground/deployment.yaml
|
||||||
- 'git commit -m "Deploy ngrx-playground ${DRONE_COMMIT_SHA}" || exit 0'
|
- 'git commit -m "Deploy ngrx-playground ${DRONE_COMMIT_SHA}" || exit 0'
|
||||||
- 'git push https://${GITEA_USERNAME}:${GITEA_PASSWORD}@gitea.mnky-code.de/mnky/k8s-manifests.git HEAD:main'
|
- git push origin HEAD:main
|
||||||
|
|||||||
Reference in New Issue
Block a user