Modify Docker workflow for new registry and image name

Updated Docker workflow to use new image registry and environment variables.
This commit is contained in:
vados-dev 2026-05-15 21:32:55 +03:00 committed by GitHub
parent 7326f05685
commit 50a46a3a9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,9 @@ permissions:
contents: read
packages: write
env:
IMAGE_NAME: "3x-ui"
on:
workflow_dispatch:
push:
@ -23,8 +26,10 @@ jobs:
uses: docker/metadata-action@v6
with:
images: |
hsanaeii/3x-ui
ghcr.io/mhsanaei/3x-ui
reg.vados.ru/${{ env.IMAGE_NAME }}
# ghcr.io/vados-dev/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
tags: |
type=ref,event=branch
type=ref,event=tag
@ -42,18 +47,26 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to GHCR
- name: Login to vados Registry
uses: docker/login-action@v4
with:
registry: reg.vados.ru
username: ${{ secrets.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: ${{ secrets.GITHUB_TOKEN }}
password: ${{ github.token }}
- name: Build and push Docker image
uses: docker/build-push-action@v7
with:
context: .
push: true
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/386
platforms: linux/amd64
# ${{ steps.meta.outputs.images }}:${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}