-
Notifications
You must be signed in to change notification settings - Fork 4
112 lines (92 loc) · 3.5 KB
/
mysqldump.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: mysqldump-构建和提交docker
on:
push:
branches: [main]
paths:
- "mysqldump/**"
- ".github/workflows/mysqldump.yml"
- "!**.md"
jobs:
# 并发构建
setup-build-publish-v3:
runs-on: ubuntu-latest
name: 构建和推送docker镜像v3
steps:
- name: 更新代码
# 使用action库 actions/checkout获取源码
uses: actions/checkout@v3
-
name: 登录 Docker Hub
uses: docker/login-action@v2
with:
username: adockero
password: ${{ secrets.PASSWORD }}
# ########## 构建 ###########################
- name: 构建镜像 adockero/mysqldump:tables-ssh
uses: docker/build-push-action@v3
with:
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: adockero/mysqldump:tables-ssh
# tags: adockero/node-systemd:node-14
# Path to the Dockerfile (Default is '{path}/Dockerfile')
context: ./mysqldump/tables-ssh
file: "./mysqldump/tables-ssh/Dockerfile"
# Always attempt to pull a newer version of the image
pull: true
push: true
# 构建参数
build-args: FILE_ARG=dump-import.md5.sh
# APK_ARG=rsync
# Adds labels with git repository information to the built image
labels: true
- name: 构建镜像 adockero/mysqldump:tables
uses: docker/build-push-action@v3
with:
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: adockero/mysqldump:tables
# tags: adockero/node-systemd:node-14
# Path to the Dockerfile (Default is '{path}/Dockerfile')
context: ./mysqldump/tables
file: "./mysqldump/tables/Dockerfile"
# Always attempt to pull a newer version of the image
pull: true
push: true
# 构建参数
# build-args: NODE_VERSION=14
# APK_ARG=rsync
# Adds labels with git repository information to the built image
labels: true
- name: 构建镜像 adockero/mysqldump
uses: docker/build-push-action@v3
with:
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: adockero/mysqldump
# tags: adockero/node-systemd:node-14
# Path to the Dockerfile (Default is '{path}/Dockerfile')
context: ./mysqldump
file: "./mysqldump/Dockerfile"
# Always attempt to pull a newer version of the image
pull: true
push: true
# 构建参数
# build-args: NODE_VERSION=14
# APK_ARG=rsync
# Adds labels with git repository information to the built image
labels: true
# - name: 构建镜像 adockero/node-service:node-11-alpine
# uses: docker/build-push-action@v3
# with:
# # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
# tags: adockero/node-service:node-11-alpine
# # Path to the Dockerfile (Default is '{path}/Dockerfile')
# context: ./node
# file: "./node/Dockerfile.service"
# # Always attempt to pull a newer version of the image
# pull: true
# push: true
# # 构建参数
# build-args: |
# FROM_ARG=node:11-alpine
# # APK_ARG=rsync
# # Adds labels with git repository information to the built image
# labels: true