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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v4
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to registries
|
||||||
uses: docker/login-action@v4
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
registry-auth: |
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
- username: ${{ vars.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
- name: Login to vados Registry
|
- registry: ghcr.io
|
||||||
uses: docker/login-action@v4
|
username: ${{ github.actor }}
|
||||||
with:
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
registry: reg.vados.ru
|
- registry: reg.vados.ru
|
||||||
username: ${{ vars.VADOS_REG_USERNAME }}
|
username: ${{ vars.VADOS_REG_USERNAME }}
|
||||||
password: ${{ secrets.VADOS_REG_PASSWORD }}
|
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 }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue