Trigger
This commit is contained in:
parent
6945dc183f
commit
7f1c7bea67
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
build-frontend:
|
build-frontend:
|
||||||
name: Build & Push Frontend
|
name: Build & Push Frontend
|
||||||
@ -7,6 +6,8 @@ steps:
|
|||||||
event: [ push, pull_request, tag, manual ]
|
event: [ push, pull_request, tag, manual ]
|
||||||
path:
|
path:
|
||||||
include: [ frontend/** ]
|
include: [ frontend/** ]
|
||||||
|
environment:
|
||||||
|
IMAGE_TAG: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
||||||
settings:
|
settings:
|
||||||
registry: harbor.dvirlabs.com
|
registry: harbor.dvirlabs.com
|
||||||
repo: my-apps/labmap-frontend
|
repo: my-apps/labmap-frontend
|
||||||
@ -27,6 +28,8 @@ steps:
|
|||||||
event: [ push, pull_request, tag, manual ]
|
event: [ push, pull_request, tag, manual ]
|
||||||
path:
|
path:
|
||||||
include: [ backend/** ]
|
include: [ backend/** ]
|
||||||
|
environment:
|
||||||
|
IMAGE_TAG: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
||||||
settings:
|
settings:
|
||||||
registry: harbor.dvirlabs.com
|
registry: harbor.dvirlabs.com
|
||||||
repo: my-apps/labmap-backend
|
repo: my-apps/labmap-backend
|
||||||
@ -45,6 +48,12 @@ steps:
|
|||||||
image: alpine:3.19
|
image: alpine:3.19
|
||||||
when:
|
when:
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
|
environment:
|
||||||
|
GIT_USERNAME:
|
||||||
|
from_secret: GIT_USERNAME
|
||||||
|
GIT_TOKEN:
|
||||||
|
from_secret: GIT_TOKEN
|
||||||
|
IMAGE_TAG: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git curl yq
|
- apk add --no-cache git curl yq
|
||||||
- git config --global user.name "Woodpecker Bot"
|
- git config --global user.name "Woodpecker Bot"
|
||||||
@ -53,11 +62,5 @@ steps:
|
|||||||
- cd my-apps/manifests/labmap
|
- cd my-apps/manifests/labmap
|
||||||
- yq -i ".image.tag = \"${IMAGE_TAG}\"" values.yaml
|
- yq -i ".image.tag = \"${IMAGE_TAG}\"" values.yaml
|
||||||
- git add values.yaml
|
- git add values.yaml
|
||||||
- git commit -m "Update labmap image tag to ${IMAGE_TAG}"
|
- git commit -m "Update labmap image tag to ${IMAGE_TAG}" || echo "Nothing to commit"
|
||||||
- git push origin master
|
- git push origin master
|
||||||
environment:
|
|
||||||
GIT_USERNAME:
|
|
||||||
from_secret: GIT_USERNAME
|
|
||||||
GIT_TOKEN:
|
|
||||||
from_secret: GIT_TOKEN
|
|
||||||
IMAGE_TAG: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user