File tree Expand file tree Collapse file tree 5 files changed +31
-15
lines changed
Expand file tree Collapse file tree 5 files changed +31
-15
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ inputs:
2121 tags :
2222 default : null
2323 required : true
24+ registry :
25+ default : " docker.io"
26+ required : true
27+ type : string
2428 username :
2529 default : null
2630 required : true
6872 - name : Login to Docker Hub
6973 uses : docker/login-action@v3
7074 with :
75+ registry : ${{ inputs.registry }}
7176 username : ${{ inputs.username }}
7277 password : ${{ inputs.password }}
7378
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ inputs:
1010 tags :
1111 default : null
1212 required : true
13+ registry :
14+ default : " docker.io"
15+ required : true
16+ type : string
1317 username :
1418 default : null
1519 required : true
4650 - name : Login to Docker Hub
4751 uses : docker/login-action@v3
4852 with :
53+ registry : ${{ inputs.registry }}
4954 username : ${{ inputs.username }}
5055 password : ${{ inputs.password }}
5156
Original file line number Diff line number Diff line change 1717 workflow_dispatch :
1818
1919env :
20- REGISTRY_IMAGE_ROOT : libfn/ci-build
20+ REGISTRY_IMAGE_ROOT : libfn.azurecr.io /ci-build
2121
2222jobs :
2323 build :
5959 tags : |
6060 type=raw,value=${{ env.RELEASE }}
6161 type=sha,prefix=${{ env.RELEASE }}-sha-
62- username : ${{ secrets.DOCKERHUB_USERNAME }}
63- password : ${{ secrets.DOCKERHUB_TOKEN }}
62+ registry : libfn.azurecr.io
63+ username : ${{ secrets.AZURECR_NAME }}
64+ password : ${{ secrets.AZURECR_PASS }}
6465 build_args : |
6566 GCC_RELEASE=${{ env.RELEASE }}
6667 CLANG_RELEASE=${{ env.RELEASE }}
@@ -104,6 +105,7 @@ jobs:
104105 tags : |
105106 type=raw,value=${{ env.RELEASE }}
106107 type=sha,prefix=${{ env.RELEASE }}-sha-
107- username : ${{ secrets.DOCKERHUB_USERNAME }}
108- password : ${{ secrets.DOCKERHUB_TOKEN }}
108+ registry : libfn.azurecr.io
109+ username : ${{ secrets.AZURECR_NAME }}
110+ password : ${{ secrets.AZURECR_PASS }}
109111 title : " build-${{ env.COMPILER}}-${{ env.RELEASE }}"
Original file line number Diff line number Diff line change 1717 workflow_dispatch :
1818
1919env :
20- REGISTRY_IMAGE : libfn/ci-docs
20+ REGISTRY_IMAGE : libfn.azurecr.io /ci-docs
2121
2222jobs :
2323 build :
4444 type=schedule,pattern={{date 'YYYYMMDD'}}
4545 type=raw,value=latest,enable={{is_default_branch}}
4646 type=sha
47- username : ${{ secrets.DOCKERHUB_USERNAME }}
48- password : ${{ secrets.DOCKERHUB_TOKEN }}
47+ registry : libfn.azurecr.io
48+ username : ${{ secrets.AZURECR_NAME }}
49+ password : ${{ secrets.AZURECR_PASS }}
4950 context : " ci/docs"
5051 title : " docs"
5152 push : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
6970 type=schedule,pattern={{date 'YYYYMMDD'}}
7071 type=raw,value=latest,enable={{is_default_branch}}
7172 type=sha
72- username : ${{ secrets.DOCKERHUB_USERNAME }}
73- password : ${{ secrets.DOCKERHUB_TOKEN }}
73+ registry : libfn.azurecr.io
74+ username : ${{ secrets.AZURECR_NAME }}
75+ password : ${{ secrets.AZURECR_PASS }}
7476 title : " docs"
Original file line number Diff line number Diff line change 1717 workflow_dispatch :
1818
1919env :
20- REGISTRY_IMAGE : libfn/ci-pre-commit
20+ REGISTRY_IMAGE : libfn.azurecr.io /ci-pre-commit
2121
2222jobs :
2323 build :
4444 type=schedule,pattern={{date 'YYYYMMDD'}}
4545 type=raw,value=latest,enable={{is_default_branch}}
4646 type=sha
47- username : ${{ secrets.DOCKERHUB_USERNAME }}
48- password : ${{ secrets.DOCKERHUB_TOKEN }}
47+ registry : libfn.azurecr.io
48+ username : ${{ secrets.AZURECR_NAME }}
49+ password : ${{ secrets.AZURECR_PASS }}
4950 context : " ci/pre-commit"
5051 title : " pre-commit"
5152 push : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
6970 type=schedule,pattern={{date 'YYYYMMDD'}}
7071 type=raw,value=latest,enable={{is_default_branch}}
7172 type=sha
72- username : ${{ secrets.DOCKERHUB_USERNAME }}
73- password : ${{ secrets.DOCKERHUB_TOKEN }}
73+ registry : libfn.azurecr.io
74+ username : ${{ secrets.AZURECR_NAME }}
75+ password : ${{ secrets.AZURECR_PASS }}
7476 title : " pre-commit"
You can’t perform that action at this time.
0 commit comments