37 lines
639 B
YAML
37 lines
639 B
YAML
|
kind: pipeline
|
||
|
name: deploy
|
||
|
steps:
|
||
|
- name: docker
|
||
|
image: plugins/docker
|
||
|
settings:
|
||
|
username:
|
||
|
from_secret: DOCKER_USERNAME
|
||
|
password:
|
||
|
from_secret: DOCKER_PASSWORD
|
||
|
repo: aaronriedel/elasticsearch
|
||
|
tags: latest
|
||
|
when:
|
||
|
branch:
|
||
|
include:
|
||
|
- main
|
||
|
event:
|
||
|
include:
|
||
|
- push
|
||
|
- name: docker-build
|
||
|
image: plugins/docker
|
||
|
settings:
|
||
|
username:
|
||
|
from_secret: DOCKER_USERNAME
|
||
|
password:
|
||
|
from_secret: DOCKER_PASSWORD
|
||
|
repo: aaronriedel/elasticsearch
|
||
|
tags: latest
|
||
|
dry_run: true
|
||
|
when:
|
||
|
branch:
|
||
|
exclude:
|
||
|
- main
|
||
|
event:
|
||
|
exclude:
|
||
|
- push
|