-
Notifications
You must be signed in to change notification settings - Fork 0
214 lines (211 loc) · 13.7 KB
/
docker_pull.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
name: Docker Image Pull
on:
push:
branches: [ "main" ]
paths: [
".github/workflows/docker_pull.yml",
]
pull_request:
branches: [ "main" ]
types: [opened, synchronize, closed]
paths: [
".github/workflows/docker_pull.yml",
]
env:
VERSION: 3.1.0
IMAGE_SRC: haproxytech/haproxy-alpine:3.0
IMAGE_INTERMEDIUM: saz0568/zelos-image:haproxytech-haproxy-alpine-3.0
IMAGE_DEST: harbor.zelostech.com.cn:5443/devops/haproxytech/haproxy-alpine:3.0
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' }}
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/cache-server:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/cache-server:2.0.5 saz0568/zelos-image:ml-pipeline_cache-server_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_cache-server_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/metadata-envoy:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/metadata-envoy:2.0.5 saz0568/zelos-image:ml-pipeline_metadata-envoy_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_metadata-envoy_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/tfx-oss-public/ml_metadata_store_server:1.14.0
# - name: Tag Docker images
# run: docker tag gcr.io/tfx-oss-public/ml_metadata_store_server:1.14.0 saz0568/zelos-image:ml_metadata_store_server_1.14.0
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml_metadata_store_server_1.14.0
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/metadata-writer:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/metadata-writer:2.0.5 saz0568/zelos-image:ml-pipeline_metadata-writer_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_metadata-writer_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/minio:RELEASE.2019-08-14T20-37-41Z-license-compliance
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/minio:RELEASE.2019-08-14T20-37-41Z-license-compliance saz0568/zelos-image:ml-pipeline_minio_RELEASE.2019-08-14T20-37-41Z-license-compliance
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_minio_RELEASE.2019-08-14T20-37-41Z-license-compliance
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/api-server:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/api-server:2.0.5 saz0568/zelos-image:ml-pipeline_api-server_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_api-server_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/persistenceagent:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/persistenceagent:2.0.5 saz0568/zelos-image:ml-pipeline_persistenceagent_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_persistenceagent_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/scheduledworkflow:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/scheduledworkflow:2.0.5 saz0568/zelos-image:ml-pipeline_scheduledworkflow_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_scheduledworkflow_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/frontend:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/frontend:2.0.5 saz0568/zelos-image:ml-pipeline_frontend_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_frontend_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/viewer-crd-controller:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/viewer-crd-controller:2.0.5 saz0568/zelos-image:ml-pipeline_viewer-crd-controller_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_viewer-crd-controller_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/visualization-server:2.0.5
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/visualization-server:2.0.5 saz0568/zelos-image:ml-pipeline_visualization-server_2.0.5
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_visualization-server_2.0.5
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/mysql:8.0.26
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/mysql:8.0.26 saz0568/zelos-image:ml-pipeline_mysql_8.0.26
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_mysql_8.0.26
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/workflow-controller:v3.3.10-license-compliance
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/workflow-controller:v3.3.10-license-compliance saz0568/zelos-image:ml-pipeline_workflow-controller_v3.3.10-license-compliance
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_workflow-controller_v3.3.10-license-compliance
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/argoexec:v3.3.10-license-compliance
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/argoexec:v3.3.10-license-compliance saz0568/zelos-image:ml-pipeline_argoexec_v3.3.10-license-compliance
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_argoexec_v3.3.10-license-compliance
# - name: Pull Docker images
# run: docker pull gcr.io/ml-pipeline/kfp-driver@sha256:8e60086b04d92b657898a310ca9757631d58547e76bbbb8bfc376d654bef1707
# - name: Tag Docker images
# run: docker tag gcr.io/ml-pipeline/kfp-driver@sha256:8e60086b04d92b657898a310ca9757631d58547e76bbbb8bfc376d654bef1707 saz0568/zelos-image:ml-pipeline_kfp-driver_sha256-8e60086b04d92b657898a310ca9757631d58547e76bbbb8bfc376d654bef1707
# - name: Push Docker images
# run: docker push saz0568/zelos-image:ml-pipeline_kfp-driver_sha256-8e60086b04d92b657898a310ca9757631d58547e76bbbb8bfc376d654bef1707
# - name: Pull Docker images
# run: docker pull python:3.8.19
# - name: Tag Docker images
# run: docker tag python:3.8.19 saz0568/zelos-image:python-3.8.19
# - name: Push Docker images
# run: docker push saz0568/zelos-image:python-3.8.19
# - name: Pull Docker images
# run: docker pull redis/redis-stack:7.4.0-v0
# - name: Tag Docker images
# run: docker tag redis/redis-stack:7.4.0-v0 saz0568/zelos-image:redis-stack-7.4.0-v0
# - name: Push Docker images
# run: docker push saz0568/zelos-image:redis-stack-7.4.0-v0
- name: Pull Docker images
run: docker pull ${{ env.IMAGE_SRC }}
- name: Tag Docker images
run: docker tag ${{ env.IMAGE_SRC }} ${{ env.IMAGE_INTERMEDIUM }}
- name: Push Docker images
run: docker push ${{ env.IMAGE_INTERMEDIUM }}
publish:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true }}
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
# - name: Pull Docker image from DockerHub
# run: docker pull saz0568/zelos-image:redis-stack-7.4.0-v0
- name: Pull Docker image from DockerHub
run: docker pull ${{ env.IMAGE_INTERMEDIUM }}
# - name: Pull Docker image from DockerHub
# run: docker pull saz0568/zelos-image:python-3.8.19
# docker pull saz0568/zelos-image:ml-pipeline_argoexec_v3.3.10-license-compliance
# docker pull saz0568/zelos-image:ml-pipeline_cache-server_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_metadata-envoy_2.0.5 &&
# docker pull saz0568/zelos-image:ml_metadata_store_server_1.14.0 &&
# docker pull saz0568/zelos-image:ml-pipeline_metadata-writer_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_minio_RELEASE.2019-08-14T20-37-41Z-license-compliance &&
# docker pull saz0568/zelos-image:ml-pipeline_api-server_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_persistenceagent_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_scheduledworkflow_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_frontend_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_viewer-crd-controller_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_visualization-server_2.0.5 &&
# docker pull saz0568/zelos-image:ml-pipeline_mysql_8.0.26 &&
# docker pull saz0568/zelos-image:ml-pipeline_workflow-controller_v3.3.10-license-compliance
- name: Log in to zelos Harbor
run: echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.zelostech.com.cn:5443 --username=${{ secrets.HARBOR_USERNAME }} --password-stdin
# - name: Tag Harbor images
# run: docker tag saz0568/zelos-image:redis-stack-7.4.0-v0 harbor.zelostech.com.cn:5443/devops/redis/redis-stack:7.4.0-v0
- name: Tag Harbor images
run: docker tag ${{ env.IMAGE_INTERMEDIUM }} ${{ env.IMAGE_DEST }}
# docker tag saz0568/zelos-image:ml-.3.10-license-compliance harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_argoexec_v3.3.10-license-compliance
# docker tag saz0568/zelos-image:ml-pipeline_cache-server_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_cache-server_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_metadata-envoy_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_metadata-envoy_2.0.5 &&
# docker tag saz0568/zelos-image:ml_metadata_store_server_1.14.0 harbor.zelostech.com.cn:5443/devops/kubeflow:ml_metadata_store_server_1.14.0 &&
# docker tag saz0568/zelos-image:ml-pipeline_metadata-writer_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_metadata-writer_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_minio_RELEASE.2019-08-14T20-37-41Z-license-compliance harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_minio_RELEASE.2019-08-14T20-37-41Z-license-compliance &&
# docker tag saz0568/zelos-image:ml-pipeline_api-server_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_api-server_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_persistenceagent_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_persistenceagent_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_scheduledworkflow_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_scheduledworkflow_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_frontend_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_frontend_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_viewer-crd-controller_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_viewer-crd-controller_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_visualization-server_2.0.5 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_visualization-server_2.0.5 &&
# docker tag saz0568/zelos-image:ml-pipeline_mysql_8.0.26 harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_mysql_8.0.26 &&
# docker tag saz0568/zelos-image:ml-pipeline_workflow-controller_v3.3.10-license-compliance harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_workflow-controller_v3.3.10-license-compliance
# - name: Push Harbor images
# run: docker push harbor.zelostech.com.cn:5443/devops/redis/redis-stack:7.4.0-v0
- name: Push Harbor images
run: docker push ${{ env.IMAGE_DEST }}
# - name: Push Harbor images
# run: docker push harbor.zelostech.com.cn:5443/devops/python:3.8.19
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_argoexec_v3.3.10-license-compliance
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_cache-server_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_metadata-envoy_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml_metadata_store_server_1.14.0 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_metadata-writer_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_minio_RELEASE.2019-08-14T20-37-41Z-license-compliance &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_api-server_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_persistenceagent_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_scheduledworkflow_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_frontend_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_viewer-crd-controller_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_visualization-server_2.0.5 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_mysql_8.0.26 &&
# docker push harbor.zelostech.com.cn:5443/devops/kubeflow:ml-pipeline_workflow-controller_v3.3.10-license-compliance