Skip to content

Commit 9fbe154

Browse files
committed
Add custom registry.
1 parent 8f72075 commit 9fbe154

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Create and publish a Docker image
22

33
on:
44
push:
5-
branches: ['master','8.2','8.1','8.0','7.4','7.3','develop']
5+
branches: ['master','8.2','8.1','8.0','7.4','7.3','7.2','develop']
66
workflow_dispatch:
77

88
jobs:
@@ -16,6 +16,13 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v3
1818

19+
- name: Log in to NETivism Registry
20+
uses: docker/login-action@v2
21+
with:
22+
registry: rg.netivism.com.tw
23+
username: ${{ secrets.NETIVISM_REGISTRY_USER }}
24+
password: ${{ secrets.NETIVISM_REGISTRY_PASS }}
25+
1926
- name: Log in to Docker Hub
2027
uses: docker/login-action@v2
2128
with:
@@ -36,6 +43,7 @@ jobs:
3643
images: |
3744
${{ github.repository }}
3845
ghcr.io/${{ github.repository }}
46+
rg.netivism.com.tw/${{ github.repository }}
3947
4048
4149
- name: Build and push Docker image
@@ -44,5 +52,4 @@ jobs:
4452
context: .
4553
push: true
4654
tags: ${{ steps.meta.outputs.tags }}
47-
labels: ${{ steps.meta.outputs.labels }}
48-
55+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)