forked from dromara/Jpom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-hub.yml
36 lines (36 loc) · 941 Bytes
/
docker-hub.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '1.0'
name: pipeline-20220528
displayName: docker-hub
triggers:
trigger: manual
push:
branches:
precise:
- dev
tags:
prefix:
- v
stages:
- name: stage-1b917201
displayName: 容器发布
strategy: naturally
trigger: auto
executor: []
steps:
- step: execute@docker
name: execute_by_docker
displayName: 基于镜像的脚本执行
image: hub.docker.com/bash:latest
command:
- echo 'success!'
- '# 服务端'
- docker buildx build --platform linux/amd64,linux/arm64 -t jpomdocker/jpom:2.8.22 -f ./modules/server/DockerfileRelease --push .
- '#'
- docker buildx build --platform linux/amd64,linux/arm64 -t jpomdocker/jpom:latest -f ./modules/server/DockerfileRelease --push .
strategy:
retry: '0'
strategy:
blocking: true
permissions:
- role: admin
members: []