ci: use workflows
This commit is contained in:
parent
08e2528f76
commit
a88e5859fa
|
@ -0,0 +1,12 @@
|
|||
when:
|
||||
event: push
|
||||
branch: main
|
||||
|
||||
pipeline:
|
||||
build-docker-image:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: ${ORG_REGISTRY}/${CI_REPO}
|
||||
tags:
|
||||
- ${CI_COMMIT_BRANCH}
|
||||
- ${CI_COMMIT_SHA:0:8}
|
|
@ -1,15 +1,14 @@
|
|||
depend_on:
|
||||
- build
|
||||
|
||||
skip_clone: true
|
||||
|
||||
when:
|
||||
event: [push, deployment]
|
||||
branch: main
|
||||
environment: prod
|
||||
|
||||
pipeline:
|
||||
build-docker-image:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: ${ORG_REGISTRY}/${CI_REPO}
|
||||
tags:
|
||||
- ${CI_COMMIT_BRANCH}
|
||||
- ${CI_COMMIT_SHA:0:8}
|
||||
|
||||
deploy:
|
||||
image: ${ORG_REGISTRY}/drone_plugins/docker_stack
|
||||
pull: true
|
Loading…
Reference in New Issue