added automatic deployment to stage
This commit is contained in:
parent
d9e592a985
commit
420e16f6e1
1 changed files with 18 additions and 2 deletions
|
|
@ -1,5 +1,12 @@
|
||||||
steps:
|
when:
|
||||||
- name: build-image
|
- branch: main
|
||||||
|
event: push
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
build-docker-image:
|
||||||
|
name: build-image
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
# This plugin handles the DinD complexity for you
|
# This plugin handles the DinD complexity for you
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
privileged: true # Required for the plugin to start its internal Docker engine
|
privileged: true # Required for the plugin to start its internal Docker engine
|
||||||
|
|
@ -23,3 +30,12 @@ steps:
|
||||||
build_args:
|
build_args:
|
||||||
COMMIT_SHA: ${CI_COMMIT_SHA:0:7}
|
COMMIT_SHA: ${CI_COMMIT_SHA:0:7}
|
||||||
COMMIT_MESSAGE: ${CI_COMMIT_MESSAGE}
|
COMMIT_MESSAGE: ${CI_COMMIT_MESSAGE}
|
||||||
|
|
||||||
|
deploy-to-stage:
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
commands:
|
||||||
|
- |
|
||||||
|
curl -H "Authorization: Bearer ${COOLIFY_STAGE_DEPLOY_TOKEN}" \
|
||||||
|
-X POST \
|
||||||
|
-F "image=registry.coolify1.workaround.org/debshots:${CI_COMMIT_SHA:0:7}" \
|
||||||
|
"${COOLIFY_STAGE_DEPLOY_WEBHOOK}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue