37 lines
819 B
YAML
37 lines
819 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: Build docker iamges
|
|
|
|
node:
|
|
name: pve
|
|
|
|
steps:
|
|
- name: Build normal exit image
|
|
pull: if-not-exists
|
|
image: plugins/docker:20.10
|
|
privileged: false
|
|
settings:
|
|
dockerfile: Dockerfile.normal
|
|
auto-tag: true
|
|
registry: harbor.seahi.me
|
|
repo: harbor.seahi.me/stu/normal-exit
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
|
|
- name: Build abnormal exit image
|
|
pull: if-not-exists
|
|
image: plugins/docker:20.10
|
|
privileged: false
|
|
settings:
|
|
dockerfile: Dockerfile.abnormal
|
|
auto-tag: true
|
|
registry: harbor.seahi.me
|
|
repo: harbor.seahi.me/stu/abnormal-exit
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
|