Test new branch develop
This commit is contained in:
parent
97f8bbc275
commit
1b92513d7a
@ -14,6 +14,7 @@ steps:
|
|||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${CI_COMMIT_SHA:0:7}
|
- ${CI_COMMIT_SHA:0:7}
|
||||||
|
- develop-${CI_BUILD_NUMBER}
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
@ -34,6 +35,7 @@ steps:
|
|||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${CI_COMMIT_SHA:0:7}
|
- ${CI_COMMIT_SHA:0:7}
|
||||||
|
- develop-${CI_BUILD_NUMBER}
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
@ -55,12 +57,14 @@ steps:
|
|||||||
- apk add --no-cache git yq
|
- apk add --no-cache git yq
|
||||||
- git config --global user.name "woodpecker-bot"
|
- git config --global user.name "woodpecker-bot"
|
||||||
- git config --global user.email "ci@dvirlabs.com"
|
- git config --global user.email "ci@dvirlabs.com"
|
||||||
- git clone "https://$${GIT_USERNAME}:$${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/my-apps.git"
|
- git clone "https://${GIT_USERNAME}:${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/my-apps.git"
|
||||||
- cd my-apps
|
- cd my-apps
|
||||||
- yq -i '.frontend.tag = "${CI_COMMIT_SHA:0:7}"' manifests/labmap/values.yaml
|
- |
|
||||||
- git add manifests/labmap/values.yaml
|
TAG=$([[ "$CI_COMMIT_BRANCH" == "develop" ]] && echo "develop-${CI_BUILD_NUMBER}" || echo "${CI_COMMIT_SHA:0:7}")
|
||||||
- "git commit -m 'frontend: update tag to ${CI_COMMIT_SHA:0:7}' || echo 'No changes'"
|
yq -i ".frontend.tag = \"${TAG}\"" manifests/labmap/values.yaml
|
||||||
- git push origin master
|
git add manifests/labmap/values.yaml
|
||||||
|
git commit -m "frontend: update tag to ${TAG}" || echo "No changes"
|
||||||
|
git push origin master
|
||||||
|
|
||||||
update-values-backend:
|
update-values-backend:
|
||||||
name: Update backend tag in values.yaml
|
name: Update backend tag in values.yaml
|
||||||
@ -78,9 +82,11 @@ steps:
|
|||||||
- apk add --no-cache git yq
|
- apk add --no-cache git yq
|
||||||
- git config --global user.name "woodpecker-bot"
|
- git config --global user.name "woodpecker-bot"
|
||||||
- git config --global user.email "ci@dvirlabs.com"
|
- git config --global user.email "ci@dvirlabs.com"
|
||||||
# - git clone "https://$${GIT_USERNAME}:$${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/my-apps.git"
|
- git clone "https://${GIT_USERNAME}:${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/my-apps.git"
|
||||||
- cd my-apps
|
- cd my-apps
|
||||||
- yq -i '.backend.tag = "${CI_COMMIT_SHA:0:7}"' manifests/labmap/values.yaml
|
- |
|
||||||
- git add manifests/labmap/values.yaml
|
TAG=$([[ "$CI_COMMIT_BRANCH" == "develop" ]] && echo "develop-${CI_BUILD_NUMBER}" || echo "${CI_COMMIT_SHA:0:7}")
|
||||||
- "git commit -m 'backend: update tag to ${CI_COMMIT_SHA:0:7}' || echo 'No changes'"
|
yq -i ".backend.tag = \"${TAG}\"" manifests/labmap/values.yaml
|
||||||
- git push origin master
|
git add manifests/labmap/values.yaml
|
||||||
|
git commit -m "backend: update tag to ${TAG}" || echo "No changes"
|
||||||
|
git push origin master
|
||||||
|
|||||||
@ -81,5 +81,6 @@ def list_icons():
|
|||||||
return categories
|
return categories
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user