35 lines
654 B
YAML
35 lines
654 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: dryrun
|
||
|
pull: always
|
||
|
image: plugins/docker:linux-amd64
|
||
|
settings:
|
||
|
dry_run: true
|
||
|
password:
|
||
|
from_secret: docker_password
|
||
|
repo: xoxys/rpmbuild-centos7
|
||
|
tags: linux-amd64
|
||
|
username:
|
||
|
from_secret: docker_username
|
||
|
when:
|
||
|
event:
|
||
|
- pull_request
|
||
|
|
||
|
- name: publish
|
||
|
pull: always
|
||
|
image: plugins/docker:linux-amd64
|
||
|
settings:
|
||
|
auto_tag: true
|
||
|
password:
|
||
|
from_secret: docker_password
|
||
|
repo: xoxys/rpmbuild-centos7
|
||
|
username:
|
||
|
from_secret: docker_username
|
||
|
when:
|
||
|
event:
|
||
|
- push
|
||
|
- tag
|