Compare commits
11 Commits
woodpecker
...
072cf7e9aa
Author | SHA1 | Date | |
---|---|---|---|
072cf7e9aa | |||
17add103eb | |||
b887fd46b0 | |||
abf126f31e | |||
0d6a52d2f9 | |||
e080594dcb | |||
6a11df64b0 | |||
fe9a68023a | |||
80210e67ea | |||
300adef0f9 | |||
492df7e45c |
@ -1,5 +1,5 @@
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: [push, manual]
|
||||||
branch: woodpecker
|
branch: woodpecker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -33,7 +33,8 @@ steps:
|
|||||||
- name: gitops-commit
|
- name: gitops-commit
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
environment:
|
environment:
|
||||||
DEPLOY_REPO: ssh://git@srv22.mikr.us:20343/pikram/user-microservice-deploy.git
|
DEPLOY_REPO_URL: ssh://git@srv22.mikr.us:20343/pikram/user-microservice-deploy.git
|
||||||
|
DEPLOY_REPO_BRANCH: woodpecker-fluxcd-deploy
|
||||||
GITEA_DEPLOY_KEY:
|
GITEA_DEPLOY_KEY:
|
||||||
from_secret: gitea-deploy-key
|
from_secret: gitea-deploy-key
|
||||||
GITEA_KNOWN_HOST:
|
GITEA_KNOWN_HOST:
|
||||||
@ -50,8 +51,8 @@ steps:
|
|||||||
- git config --global user.name "woodpecker[bot]"
|
- git config --global user.name "woodpecker[bot]"
|
||||||
- git config --global user.email "woodpecker@marcin00.pl"
|
- git config --global user.email "woodpecker@marcin00.pl"
|
||||||
|
|
||||||
- git clone $DEPLOY_REPO --branch woodpecker-deploy
|
- git clone $DEPLOY_REPO_URL --branch $DEPLOY_REPO_BRANCH
|
||||||
- cd user-microservice-deploy
|
- cd user-microservice-deploy/apps/user-microservice
|
||||||
|
|
||||||
- |
|
- |
|
||||||
awk -v commit="$CI_COMMIT_SHA" '
|
awk -v commit="$CI_COMMIT_SHA" '
|
||||||
@ -67,4 +68,4 @@ steps:
|
|||||||
|
|
||||||
- git add deploy.yaml
|
- git add deploy.yaml
|
||||||
- 'git diff-index --quiet HEAD || git commit -m "WOODPECKER: Changed deployed version to $CI_COMMIT_SHA"'
|
- 'git diff-index --quiet HEAD || git commit -m "WOODPECKER: Changed deployed version to $CI_COMMIT_SHA"'
|
||||||
- git push origin woodpecker-deploy
|
- git push origin $DEPLOY_REPO_BRANCH
|
||||||
|
@ -1 +1 @@
|
|||||||
1753539316
|
1753628608
|
||||||
|
Reference in New Issue
Block a user