File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ inputs:
10
10
ecr_role_arn :
11
11
description : " ECR Role ARN"
12
12
required : true
13
+ acr_password :
14
+ description : " Aliyun Container Registry Login Password"
15
+ required : false
13
16
repo :
14
17
description : " Docker Repo to push"
15
18
required : true
@@ -20,6 +23,9 @@ outputs:
20
23
ecr_repo :
21
24
description : " AWS public ECR Repository"
22
25
value : ${{ steps.registry.outputs.ecr }}
26
+ acr_repo :
27
+ description : " Aliyun public Repository"
28
+ value : ${{ steps.registry.outputs.acr }}
23
29
24
30
runs :
25
31
using : " composite"
45
51
username : ${{ inputs.dockerhub_user }}
46
52
password : ${{ inputs.dockerhub_token }}
47
53
54
+ - name : Login to Aliyun Container Registry
55
+ if : inputs.acr_password
56
+ shell : bash
57
+ run : |
58
+ docker login --username ${{ inputs.dockerhub_user }} --password ${{ inputs.acr_password }} registry.cn-beijing.aliyuncs.com
59
+
48
60
- name : Output Registries
49
61
shell : bash
50
62
id : registry
51
63
run : |
52
64
echo "::set-output name=dockerhub::datafuselabs/${{ inputs.repo }}"
53
65
echo "::set-output name=ecr::public.ecr.aws/i7g1w5q7/${{ inputs.repo }}"
66
+ echo "::set-output name=acr::registry.cn-beijing.aliyuncs.com/datafuselabs/${{ inputs.repo }}"
Original file line number Diff line number Diff line change @@ -286,6 +286,7 @@ jobs:
286
286
ecr_role_arn : ${{ secrets.ECR_ROLE_ARN }}
287
287
dockerhub_user : ${{ secrets.DOCKERHUB_USERNAME }}
288
288
dockerhub_token : ${{ secrets.DOCKERHUB_TOKEN }}
289
+ acr_password : ${{ secrets.ACR_PASSWORD }}
289
290
290
291
- name : Download binaries for usage
291
292
id : download_binaries
@@ -308,11 +309,14 @@ jobs:
308
309
run : |
309
310
_tags="${{ steps.login.outputs.dockerhub_repo }}:${{ needs.create_release.outputs.version }}-${{ matrix.distro }}"
310
311
_tags="${_tags},${{ steps.login.outputs.ecr_repo }}:${{ needs.create_release.outputs.version }}-${{ matrix.distro }}"
312
+ _tags="${_tags},${{ steps.login.outputs.acr_repo }}:${{ needs.create_release.outputs.version }}-${{ matrix.distro }}"
311
313
if [[ "${{ matrix.distro }}" == "debian" ]]; then
312
314
_tags="${_tags},${{ steps.login.outputs.dockerhub_repo }}:${{ needs.create_release.outputs.version }}"
313
315
_tags="${_tags},${{ steps.login.outputs.ecr_repo }}:${{ needs.create_release.outputs.version }}"
316
+ _tags="${_tags},${{ steps.login.outputs.acr_repo }}:${{ needs.create_release.outputs.version }}"
314
317
_tags="${_tags},${{ steps.login.outputs.dockerhub_repo }}:latest"
315
318
_tags="${_tags},${{ steps.login.outputs.ecr_repo }}:latest"
319
+ _tags="${_tags},${{ steps.login.outputs.acr_repo }}:latest"
316
320
fi
317
321
echo ::set-output name=IMAGE_TAGS::${_tags}
318
322
You can’t perform that action at this time.
0 commit comments