mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #6143 from Ocelot-Social-Community/deployment-upgrade-to-specific-version
refactor(other): deployment upgrade to specific version, trigger build on stage
This commit is contained in:
commit
4dfeeddd7c
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -300,6 +300,14 @@ jobs:
|
|||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "VERSION": "${VERSION}", "BUILD_DATE": "${BUILD_DATE}", "BUILD_COMMIT": "${BUILD_COMMIT}", "BUILD_VERSION": "${BUILD_VERSION}"}'
|
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "VERSION": "${VERSION}", "BUILD_DATE": "${BUILD_DATE}", "BUILD_COMMIT": "${BUILD_COMMIT}", "BUILD_VERSION": "${BUILD_VERSION}"}'
|
||||||
|
|
||||||
|
- name: Repository Dispatch stage.ocelot.social
|
||||||
|
uses: peter-evans/repository-dispatch@v2
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
event-type: trigger-build-success
|
||||||
|
repository: 'Ocelot-Social-Community/stage.ocelot.social'
|
||||||
|
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "VERSION": "${VERSION}", "BUILD_DATE": "${BUILD_DATE}", "BUILD_COMMIT": "${BUILD_COMMIT}", "BUILD_VERSION": "${BUILD_VERSION}"}'
|
||||||
|
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# # JOB: KUBERNETES DEPLOY ACTUAL/LATEST VERSION ######################################
|
# # JOB: KUBERNETES DEPLOY ACTUAL/LATEST VERSION ######################################
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
|
|||||||
@ -7,7 +7,13 @@ SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
|||||||
# configuration
|
# configuration
|
||||||
CONFIGURATION=${CONFIGURATION:-"example"}
|
CONFIGURATION=${CONFIGURATION:-"example"}
|
||||||
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml}
|
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml}
|
||||||
VALUES=${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubernetes/values.yaml
|
VALUES=${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubernetes/values.
|
||||||
|
DOCKERHUB_OCELOT_TAG=${DOCKERHUB_OCELOT_TAG:-"latest"}
|
||||||
|
|
||||||
# upgrade with helm
|
# upgrade with helm
|
||||||
helm --kubeconfig=${KUBECONFIG} upgrade ocelot --values ${VALUES} ${SCRIPT_DIR}/../src/kubernetes/ --debug --timeout 10m
|
helm --kubeconfig=${KUBECONFIG} upgrade ocelot \
|
||||||
|
--values ${VALUES} \
|
||||||
|
--set appVersion="${DOCKERHUB_OCELOT_TAG}"
|
||||||
|
${SCRIPT_DIR}/../src/kubernetes/ \
|
||||||
|
--debug \
|
||||||
|
--timeout 10m
|
||||||
Loading…
x
Reference in New Issue
Block a user