File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 23
23
description : ' 空间名称'
24
24
required : true
25
25
default : ' dockerhub_mirror'
26
- TARGET_ARCH :
27
- description : ' 平台 amd64(默认)、arm64、arm/v7'
28
- required : false
26
+
29
27
jobs :
30
28
build :
31
29
runs-on : ubuntu-latest
37
35
38
36
- name : Pull, tag, and push Docker image
39
37
run : |
40
- if [ "${{ github.event.inputs.TARGET_ARCH }}" != "" ]; then
41
- docker pull --platform ${{ github.event.inputs.TARGET_ARCH }} ${{ github.event.inputs.IMAGE_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
42
- else
43
- docker pull ${{ github.event.inputs.IMAGE_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
44
- fi
38
+ docker pull ${{ github.event.inputs.IMAGE_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
45
39
docker tag ${{ github.event.inputs.IMAGE_NAME }}:${{ github.event.inputs.IMAGE_VERSION }} ${{ github.event.inputs.TARGET_REGISTRY }}/${{ github.event.inputs.TARGET_REPOSITORY }}/${{ github.event.inputs.NEW_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
46
40
docker push ${{ github.event.inputs.TARGET_REGISTRY }}/${{ github.event.inputs.TARGET_REPOSITORY }}/${{ github.event.inputs.NEW_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
47
41
You can’t perform that action at this time.
0 commit comments