19 lines
427 B
YAML
19 lines
427 B
YAML
when:
|
|
branch: main
|
|
|
|
steps:
|
|
- name: build-docker-image
|
|
image: plugins/docker
|
|
settings:
|
|
repo: ${ORG_REGISTRY}/${CI_REPO}
|
|
tags:
|
|
- "${CI_COMMIT_BRANCH}"
|
|
- "${CI_COMMIT_SHA:0:8}"
|
|
|
|
- name: deploy
|
|
image: ${ORG_REGISTRY}/drone_plugins/docker_stack
|
|
pull: true
|
|
environment:
|
|
PLESHEVSKI_IMAGE: ${ORG_REGISTRY}/${CI_REPO}:${CI_COMMIT_SHA:0:8}
|
|
settings:
|
|
name: pleshevski
|