Skip to content

Commit

Permalink
Add custom registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
apple843119 committed Jun 2, 2023
1 parent d09f161 commit 823db94
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create and publish a Docker image

on:
push:
branches: ['master','8.2','8.1','8.0','7.4','7.3','develop']
branches: ['master','8.2','8.1','8.0','7.4','7.3','7.2','develop']
workflow_dispatch:

jobs:
Expand All @@ -16,6 +16,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to NETivism Registry
uses: docker/login-action@v2
with:
registry: rg.netivism.com.tw
username: ${{ secrets.NETIVISM_REGISTRY_USER }}
password: ${{ secrets.NETIVISM_REGISTRY_PASS }}

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -36,6 +43,7 @@ jobs:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
rg.netivism.com.tw/${{ github.repository }}
- name: Build and push Docker image
Expand All @@ -44,5 +52,4 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 823db94

Please sign in to comment.