mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:54:14 +00:00
Refactor Docker Hub and registry login steps
Consolidate Docker registry login steps into a single action.
This commit is contained in:
parent
bfe22c099b
commit
3e5c712ea2
1 changed files with 10 additions and 17 deletions
27
.github/workflows/docker.yml
vendored
27
.github/workflows/docker.yml
vendored
|
|
@ -41,25 +41,18 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Login to Docker Hub
|
||||
- name: Login to registries
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Login to vados Registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: reg.vados.ru
|
||||
username: ${{ vars.VADOS_REG_USERNAME }}
|
||||
password: ${{ secrets.VADOS_REG_PASSWORD }}
|
||||
|
||||
- name: Log in to GHCR
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ github.token }}
|
||||
registry-auth: |
|
||||
- username: ${{ vars.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
- registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- registry: reg.vados.ru
|
||||
username: ${{ vars.VADOS_REG_USERNAME }}
|
||||
password: ${{ secrets.VADOS_REG_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v7
|
||||
|
|
|
|||
Loading…
Reference in a new issue