Skip to content

Commit 6ba65ae

Browse files
authored
Move to libfn.azurecr.io (#166)
1 parent b09dae0 commit 6ba65ae

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

.github/actions/build-ci-image/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
@@ -68,6 +72,7 @@ runs:
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

.github/actions/merge-ci-images/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
@@ -46,6 +50,7 @@ runs:
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

.github/workflows/ci-build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
workflow_dispatch:
1818

1919
env:
20-
REGISTRY_IMAGE_ROOT: libfn/ci-build
20+
REGISTRY_IMAGE_ROOT: libfn.azurecr.io/ci-build
2121

2222
jobs:
2323
build:
@@ -59,8 +59,9 @@ jobs:
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 }}"

.github/workflows/ci-docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
workflow_dispatch:
1818

1919
env:
20-
REGISTRY_IMAGE: libfn/ci-docs
20+
REGISTRY_IMAGE: libfn.azurecr.io/ci-docs
2121

2222
jobs:
2323
build:
@@ -44,8 +44,9 @@ jobs:
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' }}
@@ -69,6 +70,7 @@ jobs:
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"

.github/workflows/ci-pre-commit.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
workflow_dispatch:
1818

1919
env:
20-
REGISTRY_IMAGE: libfn/ci-pre-commit
20+
REGISTRY_IMAGE: libfn.azurecr.io/ci-pre-commit
2121

2222
jobs:
2323
build:
@@ -44,8 +44,9 @@ jobs:
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' }}
@@ -69,6 +70,7 @@ jobs:
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"

0 commit comments

Comments
 (0)